summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
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