aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-06-17 19:01:32 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-06-19 13:32:42 -0500
commitdcff25f2cd8c11a9368cc2369aeb0319c32d9e26 (patch)
tree9c6f012546493f7e0993d0a4c1bd1c7511584f99 /rules.mak
parent8be74dc0bac8dcb25fe195f70e3a528ac78c59e2 (diff)
make: automatically include dependencies in recursive subdir rules (v2)
I think I understand enough of what's going on in these rules to ensure this is right. But I could certainly use a second or third opinion... Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index 4bc5e52fa3..60f3e96541 100644
--- a/rules.mak
+++ b/rules.mak
@@ -94,6 +94,7 @@ define unnest-dir
$(foreach var,$(nested-vars),$(call push-var,$(var),$1/))
$(eval obj := $(obj)/$1)
$(eval include $(SRC_PATH)/$1/Makefile.objs)
+$(eval -include $(wildcard $1/*.d))
$(eval obj := $(patsubst %/$1,%,$(obj)))
$(foreach var,$(nested-vars),$(call pop-var,$(var),$1/))
endef