test-lib: Allow overriding of TEST_DIRECTORY
[gitweb.git] / 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