Makefile: make gcov invocation configurable
authorThomas Rast <trast@student.ethz.ch>
Mon, 26 Jul 2010 07:43:41 +0000 (09:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:42:37 +0000 (12:42 -0700)
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 <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index c83fc29993f4cd9ea7b846449148266e65110333..194c26fc5ed09af7f8cf2bc0a2b6a2b959d299e2 100644 (file)
--- 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