From dcff25f2cd8c11a9368cc2369aeb0319c32d9e26 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sun, 17 Jun 2012 19:01:32 -0500 Subject: 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 --- rules.mak | 1 + 1 file changed, 1 insertion(+) (limited to 'rules.mak') 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 -- cgit v1.2.1