From 6e2917818299e809821b4964e7669e86f9908e21 Mon Sep 17 00:00:00 2001 From: jbj Date: Mon, 5 May 2008 19:27:31 +0000 Subject: - jbj: add lconv/gcov targets to Makefile.am. --- Makefile.am | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e142c53..ca96469 100644 --- a/Makefile.am +++ b/Makefile.am @@ -71,4 +71,33 @@ doxygen: Doxyfile mkdir -p doxygen doxygen +.PHONY: lcov-reset # run lcov from scratch, always +lcov-reset: + make lcov-run + make lcov-report + +.PHONY: lcov # run lcov from scratch if the dir is not there +lcov: + make lcov-reset + +.PHONY: lcov-run # reset run coverage tests +lcov-run: + @-rm -rf lcov + find . -name "*.gcda" -exec rm {} \; + make check + +.PHONY: lcov-report # generate report based on current coverage data +lcov-report: + mkdir lcov + lcov --directory . --capture --output-file lcov/lcov.info + lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove + lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info + rm lcov/remove + mv lcov/lcov.cleaned.info lcov/lcov.info + genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info + +#.PHONY: lcov-reset +#lcov-upload: lcov +# rsync -rvz -e ssh --delete lcov/* ??? + ACLOCAL_AMFLAGS = -I m4 -- cgit v1.2.1