aboutsummaryrefslogtreecommitdiff
path: root/Makefile.include.in
diff options
context:
space:
mode:
authorAndres Mejia <amejia004@gmail.com>2012-06-19 11:18:58 -0400
committerAndres Mejia <amejia004@gmail.com>2012-09-05 15:07:36 -0400
commitec9ed53fc1c67ae26133490704e39a3f7f7e3cee (patch)
treeba3318e8964877fa8643562db31996568f54d411 /Makefile.include.in
parentcda15bbd46de0884b663df156e9ccab1a056ff2f (diff)
[GSOC] Have the testsuite built when the 'check' target is invoked.
Support a separate target named 'testsuite' which builds the test suite without running it. Also note that a configure option (--enable-gtest) must explicitely be set in order to configure the Google Test Framework. If it is not set, running the 'check,' 'testsuite,' or 'testframework,' make targets will simply display a message saying the framework has not been configured.
Diffstat (limited to 'Makefile.include.in')
-rw-r--r--Makefile.include.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.include.in b/Makefile.include.in
index 704a4bc7f2..5772d67da7 100644
--- a/Makefile.include.in
+++ b/Makefile.include.in
@@ -125,7 +125,7 @@ GEN_DEPS=\
&& $(GEN_DEPS)
-.PHONY : lib pch clean distclean distclean_evil
+.PHONY : lib pch clean distclean distclean_evil check testsuite
$(LIB): $(OBJS)
$(SILENT_AR) $(AR) $(ARFLAGS) $(LIB) $(OBJS)
@@ -136,11 +136,11 @@ pch: $(PCH:.h=.h.gch)
clean:
$(RM) $(OBJS) *.o $(LIB) $(SLIB) $(CLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" clean); fi ); done
- for d in $(CHECK_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d $@; fi; done
+ for d in $(CHECK_DIRS) $(GTEST_DIR); do if test -f $$d/Makefile; then $(MAKE) -C $$d $@; fi; done
distclean:
$(RM) $(OBJS) *.o $(LIB) $(SLIB) $(STATICLIB) $(CLEAN_FILES) $(DISTCLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" distclean || $(MAKE) -C "$$d" clean); fi ); done
- for d in $(CHECK_DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" $@ || $(MAKE) -C "$$d" clean); fi ); done
+ for d in $(CHECK_DIRS) $(GTEST_DIR); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" $@ || $(MAKE) -C "$$d" clean); fi ); done
if [ "$(shell pwd -P)" = "$(abs_top_srcdir)" ] || \
[ "$(shell pwd)" = "$(abs_top_srcdir)" ]; then rm -f $(AUTOGENERATED_MAKEFILES) Makefile.include Makefile; fi