build: use single call to wildcard for depfiles

Provides a modest speedup on Windows, where this operation is ridiculously
slow.  Reduces time for simple "make" with no rebuilds necessary from ~23s
to ~18s on my test system.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-08-06 16:26:48 +09:30
parent 5d841e3670
commit c927c6e9a6

View File

@ -476,8 +476,10 @@ define do_zip
endef
DEPFILES := \
$(wildcard $(BUILD_DIR)/*/.*.d) \
$(wildcard $(BUILD_DIR)/*/*/.*.d)
$(wildcard \
$(BUILD_DIR)/*/.*.d \
$(BUILD_DIR)/*/*/.*.d \
)
ifneq ($(DEPFILES),)
-include $(DEPFILES)