diff options
| author | Keith Packard <keithp@keithp.com> | 2012-07-11 13:49:26 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-07-11 13:49:26 -0700 |
| commit | 18431c88c8a6cb267922b97192e8b7ddb88d0e7e (patch) | |
| tree | 3783f3a3da5c34a73faca1b9fedbc31a927cff2a /src/teleballoon-v1.1/Makefile | |
| parent | 726f47c8a07f060aed930e1d102a1e8b5a5c7aed (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/teleballoon-v1.1/Makefile')
| -rw-r--r-- | src/teleballoon-v1.1/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/teleballoon-v1.1/Makefile b/src/teleballoon-v1.1/Makefile index fb88787b..2eea996e 100644 --- a/src/teleballoon-v1.1/Makefile +++ b/src/teleballoon-v1.1/Makefile @@ -81,7 +81,8 @@ SRC = \ $(DRIVER_SRC) \ $(PRODUCT_SRC) -PROG = teleballoon-v$(TELEBALLOON_VER)-$(VERSION).ihx +PROGNAME = teleballoon-v$(TELEBALLOON_VER) +PROG = $(PROGNAME)-$(VERSION).ihx PRODUCT=TeleBalloon-v$(TELEBALLOON_VER) PRODUCT_DEF=-DTELEBALLOON_V_$(TELEBALLOON_DEF) IDPRODUCT=0x000b @@ -99,9 +100,9 @@ endif # Otherwise, print the full command line. quiet ?= $($1) -all: ../$(PROG) +all: $(PROG) -../$(PROG): $(REL) Makefile +$(PROG): $(REL) Makefile $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) .. $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@ @@ -110,11 +111,7 @@ ao_product.h: ao-make-product.5c ../Version distclean: clean -clean: - rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM) - rm -f $(PROG) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM) - rm -f ao_product.h - rm -f ../$(PROG) ../$(PMAP) +clean: clean-cc1111 install: |
