build.mk: don't search target.mk files w/o src dir

Let the build system skip the search for target.mk files in repositories
that don't have a src/ directory.
This commit is contained in:
Norman Feske 2016-05-28 22:49:41 +02:00
parent a804802bcd
commit a025ff9237

View File

@ -165,7 +165,7 @@ $(dir $(LIB_DEP_FILE)):
# Find all 'target.mk' files located within any of the specified subdirectories # Find all 'target.mk' files located within any of the specified subdirectories
# ('DST_DIRS') and any repository. The 'sort' is used to remove duplicates. # ('DST_DIRS') and any repository. The 'sort' is used to remove duplicates.
# #
TARGETS_TO_VISIT := $(shell find $(REPOSITORIES:=/src) -false \ TARGETS_TO_VISIT := $(shell find $(wildcard $(REPOSITORIES:=/src)) -false \
$(foreach DST,$(DST_DIRS), \ $(foreach DST,$(DST_DIRS), \
-or -path "*/src/$(DST)/**target.mk" \ -or -path "*/src/$(DST)/**target.mk" \
-printf " %P ")) -printf " %P "))