1
0

independ roll(1)

This commit is contained in:
dtb
2022-09-13 00:02:15 -04:00
parent 261f2d46d7
commit 07e7768399
6 changed files with 112 additions and 87 deletions

27
roll/Makefile Normal file
View File

@@ -0,0 +1,27 @@
all: roll
clean:
rm -rf ../dist/roll ../dist/roll.tar ../dist/roll.tar.gz roll
dist: ../dist/roll.tar.gz
sane: roll.c ../include/sysexits.h
$(CC) -DDONT_USE_SYSTEM_SYSEXITS -o roll roll.c
roll: roll.c
$(CC) -o roll roll.c
../dist/roll: roll
mkdir -p ../dist/roll.tmp/bin/
cp roll ../dist/roll.tmp/bin/roll
mv ../dist/roll.tmp ../dist/roll
../dist/roll.tar: ../dist/roll
cd ../dist/roll && pax -w -x ustar . >../roll.tar.tmp
mv ../dist/roll.tar.tmp ../dist/roll.tar
../dist/roll.tar.gz: ../dist/roll.tar
gzip -c <../dist/roll.tar >../dist/roll.tar.gz.tmp
mv ../dist/roll.tar.gz.tmp ../dist/roll.tar.gz
.PHONY: all clean sane