Simplify make/package maintenance

This commit is contained in:
Joshua Bell 2021-04-17 10:05:22 -07:00
parent 46b4462a9e
commit f124dd1bd5
3 changed files with 13 additions and 5 deletions

11
COMMANDS Normal file
View File

@ -0,0 +1,11 @@
bell
buzz
cd
chtime
chtype
copy
date
echo
hello
online
type

View File

@ -5,10 +5,7 @@ LDFLAGS := --config apple2-asm.cfg
OUTDIR := out
TARGETS := $(OUTDIR)/path.BIN \
$(OUTDIR)/cd.CMD \
$(OUTDIR)/chtype.CMD $(OUTDIR)/chtime.CMD $(OUTDIR)/buzz.CMD \
$(OUTDIR)/copy.CMD $(OUTDIR)/date.CMD $(OUTDIR)/type.CMD \
$(OUTDIR)/bell.CMD $(OUTDIR)/hello.CMD $(OUTDIR)/echo.CMD $(OUTDIR)/online.CMD
$(shell cat COMMANDS | while read line; do echo "out/$${line}.CMD"; done)
XATTR := $(shell command -v xattr 2> /dev/null)

View File

@ -18,7 +18,7 @@ add_file () {
}
add_file "out/path.BIN" "path#062000"
for file in bell echo hello online chtype chtime copy date type buzz cd; do
for file in $(cat COMMANDS); do
add_file "out/${file}.CMD" "${file}#F04000"
done