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 \


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to