diff options
Diffstat (limited to 'include.mk')
-rw-r--r-- | include.mk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |