summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-30 03:44:36 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-30 03:44:36 +0000
commitfa8c3541a4bc29307bb85f22a9883d36563424d4 (patch)
tree70c4e83377be87b99dc2894ccef214c7e90f3e59 /include.mk
parentcleaned usb-spi example (diff)
added distclean target
added simple led usb example git-svn-id: https://svn.spreadspace.org/avr/trunk@47 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/include.mk b/include.mk
index 783aed2..9babf49 100644
--- a/include.mk
+++ b/include.mk
@@ -29,7 +29,7 @@ OBJ_LIB := $(LIBS:%=lib-%.o)
SRC_LIB := $(LIBS:%=$(LIB_DIR)/%.c)
DEP_LIB := $(LIBS:%=lib-%.d)
-.PHONY: prepare clean clean-external clean-lufa program erase flash reset run
+.PHONY: prepare clean clean-external distclean clean-lufa program erase flash reset run
ELFFILE := $(NAME).elf
HEXFILE := $(NAME).hex
@@ -77,7 +77,7 @@ lib-%.d: $(LIB_DIR)/%.c
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'
-ifneq ($(MAKECMDGOALS),clean)
+ifneq ($(MAKECMDGOALS),distclean)
-include $(DEP)
-include $(DEP_LIB)
endif
@@ -101,6 +101,7 @@ clean:
rm -f $(ELFFILE)
rm -f $(HEXFILE)
+distclean: clean-external clean
### DFU-Programmer
define DFU/erase