summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-01-20 21:10:41 +0000
committerMike Stump <mrs@apple.com>2009-01-20 21:10:41 +0000
commitadc981a3d6ab915227e70fe2fed7f44a39ca1329 (patch)
treeb2e1af1ecc02bd11c43378309bea801ba2b5bc8a /Makefile
parent1833a83368bda46b76388069e52b27f12e60dc9c (diff)
Fix make test when configuring for a seperate build directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51693c4d84..67cc282031 100644
--- 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