summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-02-06 22:04:41 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-02-06 22:04:41 +0000
commit191d820e72b24f41b2246135eabfcc47fdafb66f (patch)
tree38f58038e002aa0637e07b46be115751bd7f2c9b
parentpdf makefile target (diff)
added support for addition clean targets
git-svn-id: https://svn.spreadspace.org/avr/trunk@139 aa12f405-d877-488e-9caf-2d797e2a1cc7
-rw-r--r--include.mk2
-rw-r--r--usb-i2c-sl018/Makefile9
2 files changed, 8 insertions, 3 deletions
diff --git a/include.mk b/include.mk
index 2a17996..3d2bb22 100644
--- a/include.mk
+++ b/include.mk
@@ -94,7 +94,7 @@ $(ELFFILE): $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)
$(HEXFILE): $(ELFFILE)
$(OBJCOPY) -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@
-clean:
+clean: $(CLEAN_TARGETS)
rm -f *.o
rm -f *.d
rm -f *.d.*
diff --git a/usb-i2c-sl018/Makefile b/usb-i2c-sl018/Makefile
index 4acf020..42ba1d7 100644
--- a/usb-i2c-sl018/Makefile
+++ b/usb-i2c-sl018/Makefile
@@ -42,13 +42,18 @@ LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
LUFA_COMPONENTS := USB USBCLASS TWI SERIAL
+CLEAN_TARGETS += clean-pdf clean-update-keys
+
include ../include.mk
update-keys: update-keys.c
gcc -o $@ $<
-pdfclean:
- rm *.pdf
+clean-update-keys:
+ rm -f update-keys
pdf: statemachine.dot
dot -Tpdf statemachine.dot -o statemachine.pdf
+
+clean-pdf:
+ rm -f statemachine.pdf