aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-04-30 16:59:48 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-05-28 10:28:51 +0100
commit5eda6e42cce506658f40aed6e40a8fed47ca5ad6 (patch)
tree6cd7a337df4149df3042cde5c047842fc8b203f0 /Makefile
parent30b3718bb986b71159b2246f962954e6e2afdea5 (diff)
downloadqemu-5eda6e42cce506658f40aed6e40a8fed47ca5ad6.zip
qemu-5eda6e42cce506658f40aed6e40a8fed47ca5ad6.tar.gz
qemu-5eda6e42cce506658f40aed6e40a8fed47ca5ad6.tar.bz2
Makefile: include per-target build directories in coverage report
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7337087..f0be624 100644
--- a/Makefile
+++ b/Makefile
@@ -1009,7 +1009,9 @@ $(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
%/coverage-report.html:
@mkdir -p $*
$(call quiet-command,\
- gcovr -r $(SRC_PATH) --object-directory $(BUILD_DIR) \
+ gcovr -r $(SRC_PATH) \
+ $(foreach t, $(TARGET_DIRS), --object-directory $(BUILD_DIR)/$(t)) \
+ --object-directory $(BUILD_DIR) \
-p --html --html-details -o $@, \
"GEN", "coverage-report.html")