[cfe-commits] r140639 - /cfe/trunk/Makefile
Douglas Gregor
dgregor at apple.com
Tue Sep 27 14:28:11 PDT 2011
Author: dgregor
Date: Tue Sep 27 16:28:10 2011
New Revision: 140639
URL: http://llvm.org/viewvc/llvm-project?rev=140639&view=rev
Log:
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!
Modified:
cfe/trunk/Makefile
Modified: cfe/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Makefile?rev=140639&r1=140638&r2=140639&view=diff
==============================================================================
--- cfe/trunk/Makefile (original)
+++ cfe/trunk/Makefile Tue Sep 27 16:28:10 2011
@@ -68,7 +68,7 @@
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 \
More information about the cfe-commits
mailing list