summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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