independ echo
This commit is contained in:
28
echo/Makefile
Normal file
28
echo/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
all: echo
|
||||
|
||||
clean:
|
||||
rm -rf ../dist/echo ../dist/echo.tar ../dist/echo.tar.gz echo
|
||||
|
||||
dist: ../dist/echo.tar.gz
|
||||
|
||||
sane: echo.c ../include/sysexits.h
|
||||
$(CC) -DDONT_USE_SYSTEM_SYSEXITS -o echo echo.c
|
||||
|
||||
echo: echo.c
|
||||
$(CC) -o echo echo.c
|
||||
|
||||
../dist/echo: echo
|
||||
mkdir -p ../dist/echo.tmp/bin/ ../dist/echo.tmp/share/man/man1/
|
||||
cp echo ../dist/echo.tmp/bin/echo
|
||||
cp echo.1 ../dist/echo.tmp/share/man/man1/echo.1
|
||||
mv ../dist/echo.tmp ../dist/echo
|
||||
|
||||
../dist/echo.tar: ../dist/echo
|
||||
cd ../dist/echo && pax -w -x ustar . >../echo.tar.tmp
|
||||
mv ../dist/echo.tar.tmp ../dist/echo.tar
|
||||
|
||||
../dist/echo.tar.gz: ../dist/echo.tar
|
||||
gzip -c <../dist/echo.tar >../dist/echo.tar.gz.tmp
|
||||
mv ../dist/echo.tar.gz.tmp ../dist/echo.tar.gz
|
||||
|
||||
.PHONY: all clean sane
|
||||
Reference in New Issue
Block a user