summaryrefslogtreecommitdiff
path: root/legacy/eet/Makefile.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-01-22 15:09:51 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-01-22 15:09:51 +0000
commit422775911b9aefd9633f78171d10fdfc3b7443df (patch)
treee19e939d7c15be30a024b421d81333ce2bb889d6 /legacy/eet/Makefile.am
parent58feaf04b496a3b275d233045429aa85955fc085 (diff)
buildbot: new attempt at coverage support.
I've changed a bit the rules, let's see if it works with buildbot (out-of-tree builds). SVN revision: 67449
Diffstat (limited to '')
-rw-r--r--legacy/eet/Makefile.am18
1 files changed, 8 insertions, 10 deletions
diff --git a/legacy/eet/Makefile.am b/legacy/eet/Makefile.am
index 34a576216d..d3622dca5f 100644
--- a/legacy/eet/Makefile.am
+++ b/legacy/eet/Makefile.am
@@ -69,18 +69,16 @@ endif
69 69
70if EFL_ENABLE_COVERAGE 70if EFL_ENABLE_COVERAGE
71lcov-reset: 71lcov-reset:
72 @rm -rf coverage 72 @rm -rf $(top_builddir)/coverage
73 @find . -name "*.gcda" -exec rm {} \; 73 @find $(top_builddir) -name "*.gcda" -delete
74 @lcov --directory . --zerocounters 74 @lcov --zerocounters --directory $(top_builddir)
75 75
76lcov-report: 76lcov-report:
77 @mkdir coverage 77 @mkdir $(top_builddir)/coverage
78 @lcov --compat-libtool --directory . --capture --output-file coverage/coverage.info 78 lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
79 @lcov -l coverage/coverage.info |grep "\\.h" |cut -d " " -f 2 > coverage/remove 79 lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
80 @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info 80 genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
81 @rm coverage/remove 81 @echo "Coverage Report at $(top_builddir)/coverage/html"
82 @mv coverage/coverage.cleaned.info coverage/coverage.info
83 @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
84 82
85coverage: 83coverage:
86 @$(MAKE) lcov-reset 84 @$(MAKE) lcov-reset