If you download clang and delete the test directory, you can end up

with the copy line failing with an error, yet the make will complete
successfully. From Greg Clayton!

llvm-svn: 140639
This commit is contained in:
Douglas Gregor 2011-09-27 21:28:10 +00:00
parent 469683e98d
commit cb56faf091
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ ifeq ($(IS_TOP_LEVEL),1)
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
$(RecursiveTargets)::
$(Verb) for dir in test unittests; do \
if [ ! -f $${dir}/Makefile ]; then \
if [ -f $(PROJ_SRC_DIR)/$${dir}/Makefile ] && [ ! -f $${dir}/Makefile ]; then \
$(MKDIR) $${dir}; \
$(CP) $(PROJ_SRC_DIR)/$${dir}/Makefile $${dir}/Makefile; \
fi \