diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-02-20 03:51:07 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-02-20 03:51:07 +0000 |
commit | c156632c62214c7d611f187e148c51e8ed4060d5 (patch) | |
tree | 39514a1ce76a8b5ba14f6f36ba40a6d3adfe2c2c /Makefile.rules | |
parent | 00d78f1348a5980a276bed8f9be09ce2412a6a12 (diff) | |
download | external_llvm-c156632c62214c7d611f187e148c51e8ed4060d5.zip external_llvm-c156632c62214c7d611f187e148c51e8ed4060d5.tar.gz external_llvm-c156632c62214c7d611f187e148c51e8ed4060d5.tar.bz2 |
Do not try to descend into optional build directories if they do not
exist. This makes the build logic symmetric for both the in tree and
out of tree cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index eab8861..363fa96 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -840,7 +840,9 @@ $(RecursiveTargets):: else $(RecursiveTargets):: $(Verb) for dir in $(OPTIONAL_DIRS); do \ - ($(MAKE) -C$$dir $@ ) || exit 1; \ + if [ -d $(PROJ_SRC_DIR)/$$dir ]; then\ + ($(MAKE) -C$$dir $@ ) || exit 1; \ + fi \ done endif endif |