# 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
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
###############################################################################
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)
ifeq ($(LEVEL),.)
#------------------------------------------------------------------------
-# Install support for project's include files:
+# Install support for the project's include files:
#------------------------------------------------------------------------
install-local::
$(Echo) Installing include files