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 <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Rast committed
Jul 26, 2010 at 09:43 UTC
e146d1772b57f595cd7c6537045eedbb82b98e37
1 file changed
+2
-1
Makefile
+2
-1
@@ -308,6 +308,7 @@ TCL_PATH = tclsh
308
TCLTK_PATH = wish
309
PTHREAD_LIBS = -lpthread
310
PTHREAD_CFLAGS =
311
+GCOV = gcov
312
313
export TCL_PATH TCLTK_PATH
314
@@ -2312,7 +2313,7 @@ coverage-build: coverage-clean
2313
2314
coverage-report:
2315
$(QUIET_GCOV)for dir in $(object_dirs); do \
2315
- gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
2316
+ $(GCOV) $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
2317
done
2318
2319
coverage-untested-functions: coverage-report