aboutsummaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-04-14 19:04:12 +0000
committerAndrew Trick <atrick@apple.com>2011-04-14 19:04:12 +0000
commit06bf90e559b4e38add46b2574fa5d4e6664e0821 (patch)
treec471b7a9041dee55c85404a011e2b6e91534078e /Makefile.rules
parent7bb65b03ddd7425b80074434b2bf32294df75333 (diff)
Add a "make build" target to the test-suite.
I use this as follows make -j8 build TEST=simple ... make TEST=simple ... This is the only reasonable way I've come up with for manual benchmarking. I'm checking in since others have asked for the feature. git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@129530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9483b732..d3cd0b38 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -89,6 +89,9 @@ all ::
# Default for install is to at least build everything...
install ::
+# Default rule for build. It ensures everything has a build rule
+build::
+
# Default rule for test. It ensures everything has a test rule
test::
@@ -125,7 +128,7 @@ prdirs::
# which are marked as Phony.
#
.PHONY: all dynamic bytecodelib install-bytecode-library
-.PHONY: clean distclean install test bytecode native prdirs dbg
+.PHONY: clean distclean install build test bytecode native prdirs dbg
###########################################################################
# Miscellaneous paths and commands:
@@ -530,7 +533,7 @@ RObjectsG := $(addprefix $(PROJ_OBJ_DIR)/Debug/,$(RObjs))
#---------------------------------------------------------
ifdef DIRS
-all install clean test bytecode native stripped-bytecode install-bytecode::
+all install clean build test bytecode native stripped-bytecode install-bytecode::
$(VERB) for dir in ${DIRS}; do \
if [ ! -f $$dir/Makefile ]; \
then \
@@ -545,6 +548,7 @@ endif
ifdef PARALLEL_DIRS
all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
+build :: $(addsuffix /.makebuild , $(PARALLEL_DIRS))
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
@@ -552,7 +556,7 @@ native :: $(addsuffix /.makenative, $(PARALLEL_DIRS))
stripped-bytecode :: $(addsuffix /.makestripped-bytecode, $(PARALLEL_DIRS))
install-bytecode :: $(addsuffix /.makeinstall-bytecode, $(PARALLEL_DIRS))
-%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode \
+%/.makeall %/.makeinstall %/.makeclean %/.makebuild %/.maketest %/.makebytecode \
%/.makestripped-bytecode %/.makeinstall-bytecode %/.makenative:
$(VERB) if [ ! -f $(@D)/Makefile ]; \
then \
@@ -564,7 +568,7 @@ endif
# Handle directories that may or may not exist
ifdef OPTIONAL_DIRS
-all install clean test bytecode stripped-bytecode install-bytecode::
+all install clean build test bytecode stripped-bytecode install-bytecode::
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
if [ -d $(SourceDir)/$$dir ]; \
then\