diff mbox series

[v2,7/7] Makefile: explicitly pass $(BUILD_DIR) to gcovr

Message ID 20190312105547.4755-8-alex.bennee@linaro.org
State Superseded
Headers show
Series testing/next for softfreeze | expand

Commit Message

Alex Bennée March 12, 2019, 10:55 a.m. UTC
Best to be explicit about where to find things.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.20.1

Comments

Philippe Mathieu-Daudé March 12, 2019, 1:38 p.m. UTC | #1
On 3/12/19 11:55 AM, Alex Bennée wrote:
> Best to be explicit about where to find things.

> 

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

> ---

>  Makefile | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/Makefile b/Makefile

> index 7202ac76dc..248fe9db7b 100644

> --- a/Makefile

> +++ b/Makefile

> @@ -964,7 +964,8 @@ $(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl

>  %/coverage-report.html:

>  	@mkdir -p $*

>  	$(call quiet-command,\

> -		gcovr -r $(SRC_PATH) -p --html --html-details -o $@, \

> +		gcovr -r $(SRC_PATH) --object-directory $(BUILD_PATH) \

> +		-p --html --html-details -o $@, \

>  		"GEN", "coverage-report.html")

>  

>  .PHONY: coverage-report

> 


Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 7202ac76dc..248fe9db7b 100644
--- a/Makefile
+++ b/Makefile
@@ -964,7 +964,8 @@  $(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
 %/coverage-report.html:
 	@mkdir -p $*
 	$(call quiet-command,\
-		gcovr -r $(SRC_PATH) -p --html --html-details -o $@, \
+		gcovr -r $(SRC_PATH) --object-directory $(BUILD_PATH) \
+		-p --html --html-details -o $@, \
 		"GEN", "coverage-report.html")
 
 .PHONY: coverage-report