From f124dd1bd52270a3c27b4f9db04e2972a9ec7d70 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sat, 17 Apr 2021 10:05:22 -0700 Subject: [PATCH] Simplify make/package maintenance --- COMMANDS | 11 +++++++++++ Makefile | 5 +---- package.sh | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 COMMANDS diff --git a/COMMANDS b/COMMANDS new file mode 100644 index 0000000..639854d --- /dev/null +++ b/COMMANDS @@ -0,0 +1,11 @@ +bell +buzz +cd +chtime +chtype +copy +date +echo +hello +online +type diff --git a/Makefile b/Makefile index a48d1f8..1188f26 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/package.sh b/package.sh index 8a037e1..bd6591d 100755 --- a/package.sh +++ b/package.sh @@ -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