summaryrefslogtreecommitdiff
path: root/Makerules.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules.in')
-rw-r--r--Makerules.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makerules.in b/Makerules.in
index 864bdf3..b0dfc35 100644
--- a/Makerules.in
+++ b/Makerules.in
@@ -103,6 +103,11 @@ ASFLAGS += -DASSEMBLER
# Dependency generation
#
+# Don't build and include dependency files if they're not needed.
+ifeq ($(strip $(filter-out %clean, $(MAKECMDGOALS))),)
+no_deps = t
+endif
+
# Include dependency files
ifneq ($(no_deps),t)