Makefile: explicitly pass $(SRC_PATH) to gcovr

In an out-of-tree build gcovr can get quite confused about what is
going on otherwise.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
master
Alex Bennée 2019-03-11 16:12:53 +00:00
parent 2f6c252628
commit 08a742c89c
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ $(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
%/coverage-report.html:
@mkdir -p $*
$(call quiet-command,\
gcovr -p --html --html-details -o $@, \
gcovr -r $(SRC_PATH) -p --html --html-details -o $@, \
"GEN", "coverage-report.html")
.PHONY: coverage-report