diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-27 21:28:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-27 21:28:10 +0000 |
commit | 1456fec8420de3dfce396de844a9e37d13417423 (patch) | |
tree | 037a4b9b58b5626c4f621e345d9ae7d53b822fad /Makefile | |
parent | 578faa837b552403e2002b97fdfbfde14f2448e5 (diff) | |
download | clang-1456fec8420de3dfce396de844a9e37d13417423.tar.gz |
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!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,7 @@ ifeq ($(IS_TOP_LEVEL),1) 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 \ |