1
0
This commit is contained in:
dtb 2022-09-17 17:56:44 -04:00
parent 325fa5ef64
commit bc3b7c3f50
2 changed files with 32 additions and 0 deletions

12
dist/Makefile vendored Normal file
View File

@ -0,0 +1,12 @@
bin:
mkdir -p bin
battery: bin/battery
bin/battery: bin ../battery/battery
cp ../battery/battery* bin/
volume: bin/volume
bin/volume: bin ../volume/volume
cp ../volume/volume* bin/
.PHONY: battery volume

20
volume/Makefile Normal file
View File

@ -0,0 +1,20 @@
all: ;
clean: ;
sane: ;
dist: ../dist/volume.tar.gz
../dist/volume: volume
mkdir -p ../dist/volume.tmp/bin/
cp volume* ../dist/volume.tmp/bin/
mv ../dist/volume.tmp ../dist/volume
../dist/volume.tar: ../dist/volume
cd ../dist/volume && pax -w -x ustar . >../volume.tar.tmp
mv ../dist/volume.tar.tmp ../dist/volume.tar
../dist/volume.tar.gz: ../dist/volume.tar
gzip -c <../dist/volume.tar >../dist/volume.tar.gz.tmp
mv ../dist/volume.tar.gz.tmp ../dist/volume.tar.gz
.PHONY: all clean sane