[llvm-branch-commits] [cfe-branch] r109992 - /cfe/branches/Apple/lemur-IB/Makefile

Daniel Dunbar daniel at zuster.org
Sun Aug 1 15:56:10 PDT 2010


Author: ddunbar
Date: Sun Aug  1 17:56:10 2010
New Revision: 109992

URL: http://llvm.org/viewvc/llvm-project?rev=109992&view=rev
Log:
Don't automatically run tests unless ENABLE_TESTS=1 is set.

Modified:
    cfe/branches/Apple/lemur-IB/Makefile

Modified: cfe/branches/Apple/lemur-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/lemur-IB/Makefile?rev=109992&r1=109991&r2=109992&view=diff
==============================================================================
--- cfe/branches/Apple/lemur-IB/Makefile (original)
+++ cfe/branches/Apple/lemur-IB/Makefile Sun Aug  1 17:56:10 2010
@@ -15,6 +15,12 @@
 VCBUILD := $(VS90COMNTOOLS)\..\..\VC\VCPackages\vcbuild
 JOBS := $(NUMBER_OF_PROCESSORS)
 
+ifeq ($(ENABLE_TESTS),1)
+BUILD_TARGET := test
+else
+BUILD_TARGET := build
+endif
+
 ##
 
 SVN_BASE = $(shell svn info | sed -n "s/^URL: //; s,/llvm-project/.*$$,/llvm-project,p")
@@ -47,7 +53,8 @@
 	@echo "  configure: configure using CMake (inside OBJROOT)"
 	@echo "  build    : build using vcbuild.exe (inside OBJROOT)"
 	@echo "  test     : run the clang regression tests"
-	@echo "  install  : configure, build, test and install"
+	@echo "  install  : configure, build, and install (set ENABLE_TESTS=1"
+	@echo "             to also run tests)"
 	@echo ""
 	@echo "  update-sources: update LLVM and Clang sources"
 
@@ -72,7 +79,7 @@
 test: build
 	"$(VCBUILD)" /M$(JOBS) "$(OBJROOT)"\tools\clang\test\clang-test.vcproj "$(TARGET)"
 
-install: test
+install: $(BUILD_TARGET)
 	"$(CMAKE)" -E make_directory "$(BINDEST)"
 	xcopy /i/y "$(STAGEROOT)\bin\clang.exe" "$(BINDEST)"
 





More information about the llvm-branch-commits mailing list