summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ddd1aa22c..807762286 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,11 @@ ALL_BUILDS := ruby ruby_rev1 ruby_rev1 sapphire sapphire_rev1 sapphire_rev2 ruby
# Available targets
.PHONY: all clean tidy tools $(ALL_BUILDS)
+# Disable dependency scanning for clean/tidy/tools
+ifneq (,$(filter clean tidy tools,$(MAKECMDGOALS)))
+NODEP := 1
+endif
+
# Disable dependency scanning when NODEP is used for quick building
ifeq ($(NODEP),)
$(BUILD_DIR)/src/%.o: C_FILE = $(*D)/$(*F).c