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
This commit is contained in:
Stephen Wilson 2011-02-20 03:51:07 +00:00
parent 00d78f1348
commit c156632c62

View File

@ -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