summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-17 23:35:02 +0000
committerChris Lattner <sabre@nondot.org>2002-09-17 23:35:02 +0000
commitf1ffd99a755862794a257205aa7dcfd7d9647f99 (patch)
tree710ea75b26f8840962a878f89b850b53ea9a2a7f /Makefile.common
parent52ee1b08ac7050d498ffe2314b403c818fcf8684 (diff)
downloadllvm-f1ffd99a755862794a257205aa7dcfd7d9647f99.tar.gz
llvm-f1ffd99a755862794a257205aa7dcfd7d9647f99.tar.bz2
llvm-f1ffd99a755862794a257205aa7dcfd7d9647f99.tar.xz
Fix parallel recursive make to build directories in order
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile.common b/Makefile.common
index cd21b40f42..da515716b0 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -179,12 +179,10 @@ ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
ifdef DIRS # Only do this if we're using DIRS!
-all :: $(addsuffix /.makeall , $(DIRS))
-install :: $(addsuffix /.makeinstall, $(DIRS))
-clean :: $(addsuffix /.makeclean , $(DIRS))
-
-%/.makeall %/.makeclean %/.makeinstall:
- $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
+all install clean::
+ @for dir in ${DIRS}; do \
+ (cd $$dir; $(MAKE) $@) || exit 1; \
+ done
endif
#---------------------------------------------------------