diff options
author | Mike Stump <mrs@apple.com> | 2009-01-20 21:10:41 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-01-20 21:10:41 +0000 |
commit | adc981a3d6ab915227e70fe2fed7f44a39ca1329 (patch) | |
tree | b2e1af1ecc02bd11c43378309bea801ba2b5bc8a /Makefile | |
parent | 1833a83368bda46b76388069e52b27f12e60dc9c (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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |