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

index 1df8c316271109efaeacedea0c720dd4b8ee418c..3ecdd94dfc5fd3ffbfe17aad6af9935b8b17398b 100644 (file)
@@ -60,4 +60,11 @@ update-online-doc:
        git commit -m "Updated documentation for $(PACKAGE) to version $(VERSION)" && \
        git push ; \
        popd > /dev/null && \
-       rm -rf $(PACKAGE)-$(VERSION)
\ No newline at end of file
+       rm -rf $(PACKAGE)-$(VERSION)
+
+lcov: check
+       @rm -rf lcov-report
+       @lcov -c --directory libgsignon-glib/ --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"
\ No newline at end of file