Revision 1435ddb8 rules.mak

b/rules.mak
94 94
$(foreach var,$(nested-vars),$(call push-var,$(var),$1/))
95 95
$(eval obj := $(obj)/$1)
96 96
$(eval include $(SRC_PATH)/$1/Makefile.objs)
97
$(eval -include $(wildcard $1/*.d))
98 97
$(eval obj := $(patsubst %/$1,%,$(obj)))
99 98
$(foreach var,$(nested-vars),$(call pop-var,$(var),$1/))
100 99
endef
......
113 112
$(call unnest-vars-1)
114 113
$(foreach var,$(nested-vars),$(eval $(var) := $(filter-out %/, $($(var)))))
115 114
$(shell mkdir -p $(sort $(foreach var,$(nested-vars),$(dir $($(var))))))
115
$(foreach var,$(nested-vars), $(eval \
116
  -include $(addsuffix *.d, $(sort $(dir $($(var)))))))
116 117
endef

Also available in: Unified diff