Makefile.am: added simple 'make lcov' rules
authorPaul Brossier <piem@piem.org>
Tue, 13 Nov 2007 07:07:49 +0000 (08:07 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 13 Nov 2007 07:07:49 +0000 (08:07 +0100)
Makefile.am

index b37e3b64d5b55df6c1688cb6a496ac2c401cedcc..ab6963d2d35b9972cdf4338d097bd97e5978673e 100644 (file)
@@ -35,3 +35,9 @@ uninstall-pkgconfig:
 install-data-hook: install-pkgconfig
 uninstall-hook: uninstall-pkgconfig
 
+lcov: all
+       mkdir -p $(top_builddir)/lcov
+       lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --zerocounters
+       cd tests/python && ./run_all_tests -v || echo "some tests failed"
+       lcov --directory $(top_builddir) --output-file $(top_builddir)/lcov/aubio.info --compat-libtool --capture
+       genhtml --output-directory $(top_builddir)/lcov $(top_builddir)/lcov/aubio.info