summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorEmanuele Aina <em@nerd.ocracy.org>2007-06-24 22:57:53 +0000
committerEmanuele Aina <em@nerd.ocracy.org>2007-06-24 22:57:53 +0000
commit97e025f19370a7b8d5170195683570390fdd6c3d (patch)
treed0c712010018c62acc3f75928a36bf6fbc2add26 /rules
parent956ad19e8f1b6e364d673abcf4a68cf62d12306b (diff)
downloadtelepathy-salut-97e025f19370a7b8d5170195683570390fdd6c3d.tar.gz
Put the lcov output in coverage/ instead of lcov/
20070624225753-f974e-5f129404f14e68f686a38231fddd432678232421.gz
Diffstat (limited to 'rules')
-rw-r--r--rules/lcov.mak20
1 files changed, 11 insertions, 9 deletions
diff --git a/rules/lcov.mak b/rules/lcov.mak
index b428b82e..3a879351 100644
--- a/rules/lcov.mak
+++ b/rules/lcov.mak
@@ -1,3 +1,5 @@
+COVERAGE_DIR=coverage
+
# run lcov from scratch, always
lcov-reset:
make lcov-run
@@ -9,17 +11,17 @@ lcov:
# reset run coverage tests
lcov-run:
- @-rm -rf lcov
+ @-rm -rf $(COVERAGE_DIR)
@-find . -name "*.gcda" -exec rm {} \;
-make check
# generate report based on current coverage data
lcov-report:
- mkdir lcov
- $(LCOV_PATH) --compat-libtool --directory . --capture --output-file lcov/lcov.info
- $(LCOV_PATH) --compat-libtool -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
- $(LCOV_PATH) --compat-libtool -l lcov/lcov.info | grep "tests/" | cut -d: -f1 >> lcov/remove
- $(LCOV_PATH) --compat-libtool -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
- rm lcov/remove
- mv lcov/lcov.cleaned.info lcov/lcov.info
- genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
+ mkdir $(COVERAGE_DIR)
+ $(LCOV_PATH) --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info
+ $(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove
+ $(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep "tests/" | cut -d: -f1 >> $(COVERAGE_DIR)/remove
+ $(LCOV_PATH) --compat-libtool -r $(COVERAGE_DIR)/lcov.info `cat $(COVERAGE_DIR)/remove` > $(COVERAGE_DIR)/lcov.cleaned.info
+ rm $(COVERAGE_DIR)/remove
+ mv $(COVERAGE_DIR)/lcov.cleaned.info $(COVERAGE_DIR)/lcov.info
+ genhtml -t "$(PACKAGE_STRING)" -o $(COVERAGE_DIR) $(COVERAGE_DIR)/lcov.info