edje: Align coverage generation with all others
authorstefan <stefan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jun 2012 13:26:25 +0000 (13:26 +0000)
committerstefan <stefan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jun 2012 13:26:25 +0000 (13:26 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@72947 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

Makefile.am

index 4d02ab0..01415b9 100644 (file)
@@ -72,23 +72,21 @@ endif
 
 if EFL_ENABLE_COVERAGE
 lcov-reset:
-       @rm -rf coverage
-       @find . -name "*.gcda" -exec rm {} \;
-       @lcov --directory . --zerocounters
+       @rm -rf $(top_builddir)/coverage
+       @find $(top_builddir) -name "*.gcda" -delete
+       @lcov --zerocounters --directory $(top_builddir)
 
 lcov-report:
-       @mkdir coverage
-       @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info
-       @lcov -l coverage/coverage.info |grep "\\.h"  |cut -d " " -f 2 > coverage/remove
-       @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
-       @rm coverage/remove
-       @mv coverage/coverage.cleaned.info coverage/coverage.info
-       @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
+       @mkdir $(top_builddir)/coverage
+       lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
+       lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
+       genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
+       @echo "Coverage Report at $(top_builddir)/coverage/html"
 
 coverage:
-       @make lcov-reset
-       @make check
-       @make lcov-report
+       @$(MAKE) lcov-reset
+       @$(MAKE) check
+       @$(MAKE) lcov-report
 else
 lcov-reset:
        @echo "reconfigure with --enable-coverage"