Revision 1435ddb8

b/Makefile
403 403
Makefile: $(GENERATED_HEADERS)
404 404

  
405 405
# Include automatically generated dependency files
406
# All subdir dependencies come automatically from our recursive subdir rules
407
-include $(wildcard *.d)
406
# Dependencies in Makefile.objs files come from our recursive subdir rules
407
-include $(wildcard *.d tests/*.d)
b/Makefile.dis
18 18

  
19 19
clean:
20 20
	rm -f *.o *.d *.a *~
21

  
22
# Include automatically generated dependency files
23
-include $(wildcard *.d)
b/Makefile.hw
21 21
clean:
22 22
	rm -f $(addsuffix *.o, $(sort $(dir $(hw-obj-y))))
23 23
	rm -f $(addsuffix *.d, $(sort $(dir $(hw-obj-y))))
24

  
25
# Include automatically generated dependency files
26
-include $(patsubst %.o, %.d, $(hw-obj-y))
b/Makefile.target
214 214

  
215 215
GENERATED_HEADERS += config-target.h
216 216
Makefile: $(GENERATED_HEADERS)
217

  
218
# Include automatically generated dependency files
219
-include $(wildcard *.d fpu/*.d tcg/*.d)
b/Makefile.user
22 22
	for d in . trace; do \
23 23
	rm -f $$d/*.o $$d/*.d $$d/*.a $$d/*~; \
24 24
	done
25

  
26
# Include automatically generated dependency files
27
-include $(wildcard *.d)
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