Add a Makefile recipe for lcov
authorAlexander Kanavin <alexander.kanavin@intel.com>
Fri, 20 Dec 2013 16:05:47 +0000 (18:05 +0200)
committerAlexander Kanavin <alexander.kanavin@intel.com>
Fri, 20 Dec 2013 16:05:47 +0000 (18:05 +0200)
Makefile.am

index 48f0e76..8ea26de 100644 (file)
@@ -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"