From 8e3077d71d76b09f851fc4677179b8b8c5023215 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 20 Dec 2013 18:05:47 +0200 Subject: [PATCH] Add a Makefile recipe for lcov --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index 48f0e76..8ea26de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,3 +18,10 @@ EXTRA_DIST = dists tools valgrind: cd test; make valgrind + +lcov: check + @rm -rf lcov-report + @lcov -c --directory src/ --output-file lcov.output + @genhtml lcov.output --output-directory lcov-report + @rm lcov.output + @echo "Coverage report is in file://$(abs_srcdir)/lcov-report/index.html" -- 2.7.4