summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makerules12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makerules b/Makerules
index b068651ba..3e3dff93b 100644
--- a/Makerules
+++ b/Makerules
@@ -364,10 +364,6 @@ files.dep := $(libc-a-y) $(libc-so-y) $(libc-nonshared-y) \
.depends.dep := $(foreach f,$(.depends.dep),$(dir $(f)).$(notdir $(f)))
.depends.dep := $(wildcard $(.depends.dep))
-ifneq ($(strip $(.depends.dep)),)
--include $(.depends.dep)
-endif
-
.PHONY: dummy $(PHONY)
FORCE:
@@ -382,3 +378,11 @@ headers_clean-y: $(headers_clean-y)
all check clean realclean distclean test \
config dist menuconfig oldconfig release \
subdirs utils
+
+ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
+ifneq ($(strip $(.depends.dep)),)
+.NOEXPORT:
+-include $(.depends.dep)
+endif
+endif
+