diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-17 19:01:32 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-19 13:32:42 -0500 |
commit | dcff25f2cd8c11a9368cc2369aeb0319c32d9e26 (patch) | |
tree | 9c6f012546493f7e0993d0a4c1bd1c7511584f99 /rules.mak | |
parent | 8be74dc0bac8dcb25fe195f70e3a528ac78c59e2 (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.mak | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |