]> granicus.if.org Git - clang/commitdiff
Fix make test when configuring for a seperate build directory.
authorMike Stump <mrs@apple.com>
Tue, 20 Jan 2009 21:10:41 +0000 (21:10 +0000)
committerMike Stump <mrs@apple.com>
Tue, 20 Jan 2009 21:10:41 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62614 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index 51693c4d84e10ef8d4ca06c8170894bd492b6112..67cc282031985533b3168e862f19c26912691046 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,14 @@ DIRS := lib Driver docs tools
 
 include $(LEVEL)/Makefile.common
 
+ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
+test::
+       $(Verb) if [ ! -f test/Makefile ]; then \
+         $(MKDIR) test; \
+         $(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
+       fi
+endif
+
 test::
        @ $(MAKE) -C test