aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-08-20 12:44:04 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-08-20 12:44:04 +0300
commit48f8ab1ae2612960cbd82c1f9967fd118aae4c67 (patch)
treefef04f47afc0ef478c7be1bf77d6eff15960e2dd
parentda226e61261e0c11e678d2086c00b2a45726083e (diff)
downloadfirmware-48f8ab1ae2612960cbd82c1f9967fd118aae4c67.tar.gz
firmware-48f8ab1ae2612960cbd82c1f9967fd118aae4c67.tar.bz2
firmware-48f8ab1ae2612960cbd82c1f9967fd118aae4c67.zip
Fix the clean target
It now properly cleans all the outputs
-rw-r--r--tmk_core/rules.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 977a2d0e5..21011c280 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -352,8 +352,7 @@ $(foreach OUTPUT,$(OUTPUTS),$(eval $(call GEN_OBJRULE,$(OUTPUT))))
# Target: clean project.
clean:
- $(REMOVE) -r $(OBJDIR) 2>/dev/null
- $(REMOVE) -r $(KBOBJDIR) 2>/dev/null
+ $(foreach OUTPUT,$(OUTPUTS), $(REMOVE) -r $(OUTPUT) 2>/dev/null)
$(REMOVE) $(BUILD_DIR)/$(TARGET).*
show_path: