From 32985d9a8325062c94d086b38c09203b0dc5f3e3 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 13 Jul 2012 18:52:09 -0400 Subject: Fail to generate coverage report if tests fail We'll get an incomplete report in that case anyway... --- Makefile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index b1f0ee1..affb327 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,18 +11,18 @@ endif DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc EXTRA_DIST = trim-lcov.py -.PHONY: lcov lcov-clean -# use recursive makes in order to ignore errors during check +clean-am: lcov-clean gcno-clean + +.PHONY: lcov lcov-clean gcno-clean + lcov: lcov-clean - -$(MAKE) $(AM_MAKEFLAGS) -k check + $(MAKE) $(AM_MAKEFLAGS) check lcov --directory $(top_builddir) --capture --test-name dconf | $(top_srcdir)/trim-lcov.py > dconf-lcov.info LANG=C genhtml --prefix $(top_builddir) --output-directory lcov-html --legend --show-details dconf-lcov.info @echo @echo " file://$(abs_top_builddir)/lcov-html/index.html" @echo -clean-am: lcov-clean gcno-clean - gcno-clean: -find -name '*.gcno' -delete -- cgit v1.2.1