29 lines
776 B
Makefile
29 lines
776 B
Makefile
all: pscat
|
|
|
|
clean:
|
|
rm -rf ../dist/pscat ../dist/pscat.tar ../dist/pscat.tar.gz pscat
|
|
|
|
dist: ../dist/pscat.tar.gz
|
|
|
|
sane: pscat.c ../include/sysexits.h
|
|
$(CC) -DUSE_ASCII_H -DDONT_USE_SYSTEM_SYSEXITS -o pscat pscat.c
|
|
|
|
pscat: pscat.c
|
|
$(CC) -o pscat pscat.c
|
|
|
|
../dist/pscat: pscat
|
|
mkdir -p ../dist/pscat.tmp/bin/ ../dist/pscat.tmp/share/man/man1/
|
|
cp pscat ../dist/pscat.tmp/bin/pscat
|
|
cp pscat.1 ../dist/pscat.tmp/share/man/man1/pscat.1
|
|
mv ../dist/pscat.tmp ../dist/pscat
|
|
|
|
../dist/pscat.tar: ../dist/pscat
|
|
cd ../dist/pscat && pax -w -x ustar . >../pscat.tar.tmp
|
|
mv ../dist/pscat.tar.tmp ../dist/pscat.tar
|
|
|
|
../dist/pscat.tar.gz: ../dist/pscat.tar
|
|
gzip -c <../dist/pscat.tar >../dist/pscat.tar.gz.tmp
|
|
mv ../dist/pscat.tar.gz.tmp ../dist/pscat.tar.gz
|
|
|
|
.PHONY: all clean sane
|