Add TARGETS file listing DAs to simplify script maintenance

This commit is contained in:
Joshua Bell 2018-04-25 21:14:14 -07:00
parent f3ac302764
commit 8b6678f17a
4 changed files with 13 additions and 7 deletions

View File

@ -7,8 +7,7 @@ OUTDIR = out
HEADERS = $(wildcard ../*.inc) $(wildcard ../inc/*.inc) $(wildcard *.inc)
DAS = calculator show.text.file date puzzle sort.directory \
show.image.file this.apple eyes
DAS = $(shell cat TARGETS)
TARGETS = $(patsubst %,$(OUTDIR)/%.built,$(DAS))

8
desk.acc/TARGETS Normal file
View File

@ -0,0 +1,8 @@
calculator
show.text.file
date
puzzle
sort.directory
show.image.file
this.apple
eyes

View File

@ -26,6 +26,6 @@ function mount {
mkdir -p mount
echo "Copying files to mount/"
mount 'show.image.file'
mount 'this.apple'
mount 'eyes'
for file in $(cat TARGETS); do
mount "$file"
done

View File

@ -7,8 +7,7 @@ set -e
CADIUS="${CADIUS:-$HOME/dev/cadius/bin/release/cadius}"
DAS="calculator show.text.file date puzzle sort.directory \
show.image.file this.apple eyes"
DAS=$(cat TARGETS)
PACKDIR="out/package"
FINFO="$PACKDIR/_FileInformation.txt"