[llvm-commits] CVS: llvm/Makefile.common

Chris Lattner lattner at apoc.cs.uiuc.edu
Tue Sep 17 18:35:00 PDT 2002


Changes in directory llvm:

Makefile.common updated: 1.49 -> 1.50

---
Log message:

Fix parallel recursive make to build directories in order


---
Diffs of the changes:

Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.49 llvm/Makefile.common:1.50
--- llvm/Makefile.common:1.49	Mon Sep 16 17:36:42 2002
+++ llvm/Makefile.common	Tue Sep 17 18:35:02 2002
@@ -179,12 +179,10 @@
 
 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
 
 #---------------------------------------------------------





More information about the llvm-commits mailing list