[llvm-commits] [llvm-top] r38427 - /llvm-top/trunk/Makefile

Reid Spencer reid at x10sys.com
Sun Jul 8 22:21:40 PDT 2007


Author: reid
Date: Mon Jul  9 00:21:40 2007
New Revision: 38427

URL: http://llvm.org/viewvc/llvm-project?rev=38427&view=rev
Log:
Add some error handling so the build stops if there's an error.

Modified:
    llvm-top/trunk/Makefile

Modified: llvm-top/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm-top/trunk/Makefile?rev=38427&r1=38426&r2=38427&view=diff

==============================================================================
--- llvm-top/trunk/Makefile (original)
+++ llvm-top/trunk/Makefile Mon Jul  9 00:21:40 2007
@@ -59,7 +59,7 @@
         fi
 
 build: $(MODULE) install
-	@if test -f $(MODULEINFO); then \
+	@if test -f $(MODULEINFO) ; then \
 	  BuildTarget=`$(BUILDTARGET)` ; \
 	  for mod in `$(DEPMODULES)`; do \
 	    echo -n "NOTE: $(MODULE) module depends on $$mod" ; \
@@ -68,12 +68,14 @@
 	    else \
 	      echo ", checking it out now." ; \
 	      $(MAKE) checkout MODULE=$$mod ; \
+	      if test "$$?" -ne 0 ; then exit 1 ; fi \
 	    fi ; \
 	    $(MAKE) build MODULE=$$mod ; \
+	    if test "$$?" -ne 0 ; then exit 1 ; fi \
           done; \
         fi ; \
 	echo "Building MODULE $(MODULE)" ; \
-	root=`pwd` ; cd $(MODULE) ; $(MAKE) $$BuildTarget LLVM_TOP=$$root
+	root=`pwd` ; cd $(MODULE) ; $(MAKE) $$BuildTarget LLVM_TOP=$$root 
 endif
 
 install:





More information about the llvm-commits mailing list