summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-11 13:49:26 -0700
committerKeith Packard <keithp@keithp.com>2012-07-11 13:49:26 -0700
commit18431c88c8a6cb267922b97192e8b7ddb88d0e7e (patch)
tree3783f3a3da5c34a73faca1b9fedbc31a927cff2a /src/megametrum-v0.1/Makefile
parent726f47c8a07f060aed930e1d102a1e8b5a5c7aed (diff)
altos: Have 'make clean' remove all programs, even old ones
This makes sure that changing version numbers doesn't leave old compiled output lying around. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/megametrum-v0.1/Makefile')
-rw-r--r--src/megametrum-v0.1/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/megametrum-v0.1/Makefile b/src/megametrum-v0.1/Makefile
index 13e46c97..59cfb64d 100644
--- a/src/megametrum-v0.1/Makefile
+++ b/src/megametrum-v0.1/Makefile
@@ -82,7 +82,8 @@ IDPRODUCT=0x0023
CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) -Os -g
-PROG=megametrum-v0.1-$(VERSION).elf
+PROGNAME=megametrum-v0.1
+PROG=$(PROGNAME)-$(VERSION).elf
SRC=$(ALTOS_SRC) ao_megametrum.c
OBJ=$(SRC:.c=.o)
@@ -103,7 +104,7 @@ ao_product.h: ao-make-product.5c ../Version
distclean: clean
clean:
- rm -f $(OBJ)
+ rm -f *.o $(PROGNAME)-*.elf
rm -f ao_product.h
install: