summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-13 18:52:09 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-15 10:32:58 -0400
commit32985d9a8325062c94d086b38c09203b0dc5f3e3 (patch)
tree2c63d9bfcc31d588c0a946fc3e0b4f86f82134fc
parent3bd2e9c8c37468eec6067a40ef2e66ef7372ac43 (diff)
downloaddconf-32985d9a8325062c94d086b38c09203b0dc5f3e3.tar.gz
Fail to generate coverage report if tests fail
We'll get an incomplete report in that case anyway...
-rw-r--r--Makefile.am10
1 files changed, 5 insertions, 5 deletions
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