summaryrefslogtreecommitdiff
path: root/legacy/eina
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/eina')
-rw-r--r--legacy/eina/Makefile.am18
1 files changed, 8 insertions, 10 deletions
diff --git a/legacy/eina/Makefile.am b/legacy/eina/Makefile.am
index 3e779558e7..501653c5fb 100644
--- a/legacy/eina/Makefile.am
+++ b/legacy/eina/Makefile.am
@@ -77,18 +77,16 @@ endif
77 77
78if EFL_ENABLE_COVERAGE 78if EFL_ENABLE_COVERAGE
79lcov-reset: 79lcov-reset:
80 @rm -rf coverage 80 @rm -rf $(top_builddir)/coverage
81 @find . -name "*.gcda" -exec rm {} \; 81 @find $(top_builddir) -name "*.gcda" -delete
82 @lcov --directory . --zerocounters 82 @lcov --zerocounters --directory $(top_builddir)
83 83
84lcov-report: 84lcov-report:
85 @mkdir coverage 85 @mkdir $(top_builddir)/coverage
86 @lcov --compat-libtool --directory $(top_srcdir)/src --capture --output-file coverage/coverage.info 86 lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
87 @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove 87 lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
88 @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info 88 genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
89 @rm coverage/remove 89 @echo "Coverage Report at $(top_builddir)/coverage/html"
90 @mv coverage/coverage.cleaned.info coverage/coverage.info
91 @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
92 90
93coverage: 91coverage:
94 @$(MAKE) lcov-reset 92 @$(MAKE) lcov-reset