diff options
-rw-r--r-- | include.mk | 2 | ||||
-rw-r--r-- | usb-i2c-sl018/Makefile | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -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 |