From a025ff9237532eb6961335d51bc62b76a9b76a40 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sat, 28 May 2016 22:49:41 +0200 Subject: [PATCH] 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. --- tool/builddir/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/builddir/build.mk b/tool/builddir/build.mk index c4e15e38ab..5666a60977 100644 --- a/tool/builddir/build.mk +++ b/tool/builddir/build.mk @@ -165,7 +165,7 @@ $(dir $(LIB_DEP_FILE)): # Find all 'target.mk' files located within any of the specified subdirectories # ('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), \ -or -path "*/src/$(DST)/**target.mk" \ -printf " %P "))