[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Sun Dec 5 21:35:24 PST 2004
Changes in directory llvm:
Makefile.rules updated: 1.252 -> 1.253
---
Log message:
Add the check target so all projects can have this
functionality.
---
Diffs of the changes: (+21 -4)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.252 llvm/Makefile.rules:1.253
--- llvm/Makefile.rules:1.252 Sun Dec 5 13:14:19 2004
+++ llvm/Makefile.rules Sun Dec 5 23:35:13 2004
@@ -20,10 +20,10 @@
# Define the various target sets
#--------------------------------------------------------------------
RecursiveTargets := all clean clean-all install uninstall install-bytecode
-LocalTargets := all-local clean-local clean-all-local \
+LocalTargets := all-local clean-local clean-all-local check-local \
install-local printvars uninstall-local \
install-bytecode-local
-TopLevelTargets := dist dist-check dist-clean tags dist-gzip dist-bzip2 \
+TopLevelTargets := check dist dist-check dist-clean tags dist-gzip dist-bzip2 \
dist-zip
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
InternalTargets := preconditions distdir dist-hook
@@ -1090,6 +1090,23 @@
endif
###############################################################################
+# CHECK: Running the test suite
+###############################################################################
+
+check::
+ $(Verb) if test -d "$(BUILD_OBJ_ROOT)/test" ; then \
+ if test -f "$(BUILD_OBJ_ROOT)/test/Makefile" ; then \
+ $(EchoCmd) Running test suite ; \
+ $(MAKE) -C $(BUILD_OBJ_ROOT)/test check-local \
+ TESTSUITE=$(TESTSUITE) ; \
+ else \
+ $(EchoCmd) No Makefile in test directory ; \
+ fi ; \
+ else \
+ $(EchoCmd) No test directory ; \
+ fi
+
+###############################################################################
# DISTRIBUTION: Handle construction of a distribution tarball
###############################################################################
@@ -1212,7 +1229,7 @@
fi ; \
$(EchoCmd) Removing old $(DistDir) ; \
$(RM) -rf $(DistDir); \
- $(EchoCmd) Making 'all' to be sure. ; \
+ $(EchoCmd) Making 'all' to verify build ; \
$(MAKE) all ; \
fi
$(Echo) Building Distribution Directory $(DistDir)
@@ -1296,7 +1313,7 @@
ifeq ($(LEVEL),.)
#------------------------------------------------------------------------
-# Install support for project's include files:
+# Install support for the project's include files:
#------------------------------------------------------------------------
install-local::
$(Echo) Installing include files
More information about the llvm-commits
mailing list