From: Thomas Rast Date: Mon, 26 Jul 2010 07:43:41 +0000 (+0200) Subject: Makefile: make gcov invocation configurable X-Git-Tag: v1.7.3-rc0~2^2~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e146d1772b57f595cd7c6537045eedbb82b98e37;p=git.git Makefile: make gcov invocation configurable If you customize CC to use a different version of gcc, most likely you also need to use a different version of gcov. Make it configurable. Signed-off-by: Thomas Rast Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index c83fc2999..194c26fc5 100644 --- a/Makefile +++ b/Makefile @@ -308,6 +308,7 @@ TCL_PATH = tclsh TCLTK_PATH = wish PTHREAD_LIBS = -lpthread PTHREAD_CFLAGS = +GCOV = gcov export TCL_PATH TCLTK_PATH @@ -2312,7 +2313,7 @@ coverage-build: coverage-clean coverage-report: $(QUIET_GCOV)for dir in $(object_dirs); do \ - gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \ + $(GCOV) $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \ done coverage-untested-functions: coverage-report