ref: 2b242afe464631ac48a6ac8d94f8b60ec023de44
parent: 38214151f08818ad130112ddceaa2cb543f876bb
author: Paul Brossier <piem@piem.org>
date: Fri Nov 30 10:05:35 EST 2018
[make] move coverage reports to build/coverage_{c,python}
--- a/Makefile
+++ b/Makefile
@@ -267,16 +267,14 @@
# make sure we don't build the doc, which builds a temporary python module
coverage_report: export WAFOPTS += --disable-docs
coverage_report: coverage
- # create coverage report dir
- mkdir -p build/coverage/
# generate report with lcov's genhtml
- genhtml build/coverage_lib.info --output-directory build/coverage/lcov \
+ genhtml build/coverage_lib.info --output-directory build/coverage_c \
--branch-coverage --highlight --legend
# generate python report with coverage python package
coverage report
- coverage html -d build/coverage/coverage
+ coverage html -d build/coverage_python
# show links to generated reports
- for i in $$(ls build/coverage/*/index.html); do echo file://$(PWD)/$$i; done
+ for i in $$(ls build/coverage_*/index.html); do echo file://$(PWD)/$$i; done
sphinx: configure
$(WAFCMD) sphinx $(WAFOPTS)