From e612444c4bd75b03127c5a927f9a56f2dae2cb5f Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Tue, 8 Jan 2019 08:08:54 -0800 Subject: [PATCH] Fix make clean, rename cmd sample sources --- Makefile | 4 ++-- README.md | 5 ++++- bell.s => bell.cmd.s | 0 hello.s => hello.cmd.s | 0 path.s | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) rename bell.s => bell.cmd.s (100%) rename hello.s => hello.cmd.s (100%) diff --git a/Makefile b/Makefile index 140fe68..c3bbaa4 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ HEADERS = $(wildcard *.inc) clean: rm -f $(OUTDIR)/*.o rm -f $(OUTDIR)/*.list - rm -f $(OUTDIR)/$(TARGETS) + rm -f $(TARGETS) $(OUTDIR)/%.o: %.s $(HEADERS) @@ -28,5 +28,5 @@ $(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o $(CC65)/ld65 $(CCFLAGS) -o $@ $< xattr -wx prodos.AuxType '00 20' $@ -$(OUTDIR)/%.CMD: $(OUTDIR)/%.o +$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o $(CC65)/ld65 $(CCFLAGS) -o $@ $< diff --git a/README.md b/README.md index f7b394a..cd054c3 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Example: ``` Notes: -* Allocates a 3 page buffer to store the code and path +* Allocates a buffer to store the code and path * Can be invoked as lower case (e.g. `path ...`) * Applesoft BASIC commands are unaffected (but can't be CMD names) + +Future: +* Support multi-segment paths (e.g. `/hd/cmds:/hd2/more.cmds`) diff --git a/bell.s b/bell.cmd.s similarity index 100% rename from bell.s rename to bell.cmd.s diff --git a/hello.s b/hello.cmd.s similarity index 100% rename from hello.s rename to hello.cmd.s diff --git a/path.s b/path.s index e5b31fc..e266ac7 100644 --- a/path.s +++ b/path.s @@ -17,7 +17,7 @@ ;;; * 3 pages - code, path buffers ;;; TODO: -;;; * Support multi-segment path (e.g. /hd/bin:/hd/extras/bin +;;; * Support multi-segment path (e.g. /hd/bin:/hd/extras/bin) ;;; * Fail install if on an Integer BASIC machine ;;; * Skip leading spaces