tools-only: all
libs-only: all
install-libs: install
-unittests: all
#------------------------------------------------------------------------
# Make sure the generated headers are up-to-date. This must be kept in
$(SVN) $(SVN-UPDATE-OPTIONS) update $(LLVM_SRC_ROOT)
@ $(SVN) status $(LLVM_SRC_ROOT) | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
-happiness: update all check
+happiness: update all check unittests
.PHONY: srpm rpm update happiness
RecursiveTargets := all clean clean-all install uninstall install-bytecode
LocalTargets := all-local clean-local clean-all-local check-local \
install-local printvars uninstall-local \
- install-bytecode-local
+ install-bytecode-local unittests
TopLevelTargets := check dist dist-check dist-clean dist-gzip dist-bzip2 \
- dist-zip
+ dist-zip unittests
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
InternalTargets := preconditions distdir dist-hook
fi
###############################################################################
+# UNITTESTS: Running the unittests test suite
+###############################################################################
+
+unittests::
+ $(Verb) if test -d "$(PROJ_OBJ_ROOT)/unittests" ; then \
+ if test -f "$(PROJ_OBJ_ROOT)/unittests/Makefile" ; then \
+ $(EchoCmd) Running unittests test suite ; \
+ $(MAKE) -C $(PROJ_OBJ_ROOT)/unittests ; \
+ else \
+ $(EchoCmd) No Makefile in unittests directory ; \
+ fi ; \
+ else \
+ $(EchoCmd) No unittests directory ; \
+ fi
+
+###############################################################################
# DISTRIBUTION: Handle construction of a distribution tarball
###############################################################################
--srcdir=../$(DistName) $(DIST_CHECK_CONFIG_OPTIONS) && \
$(MAKE) all && \
$(MAKE) check && \
+ $(MAKE) unittests && \
$(MAKE) install && \
$(MAKE) uninstall && \
$(MAKE) dist-clean && \
AC_CONFIG_MAKEFILE(runtime/Makefile)
AC_CONFIG_MAKEFILE(test/Makefile)
AC_CONFIG_MAKEFILE(test/Makefile.tests)
+AC_CONFIG_MAKEFILE(unittests/Makefile)
AC_CONFIG_MAKEFILE(tools/Makefile)
AC_CONFIG_MAKEFILE(utils/Makefile)
AC_CONFIG_MAKEFILE(projects/Makefile)
##===----------------------------------------------------------------------===##
LEVEL = ..
+
include $(LEVEL)/Makefile.config
LIBRARYNAME = UnitTestMain
include $(LEVEL)/Makefile.common
clean::
- $(RM) -f *Tests
+ $(Verb) $(RM) -f *Tests