Makefile: Split out the untested functions target
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 25 Jul 2010 19:52:41 +0000 (19:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 19:42:18 +0000 (12:42 -0700)
Change the coverage-report target so that it doesn't generate the
coverage-untested-functions file by default. I'm adding more targets
for doing various things with the gcov files, and they shouldn't all
run by default.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index e1e150df9c5ac0ab757bb52380bd7b67c025680f..11f1df2787d212bdbbd5dd2b380a71331e9e3488 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2312,6 +2312,8 @@ coverage-report:
        $(QUIET_GCOV)for dir in $(object_dirs); do \
                gcov $(GCOVFLAGS) --object-directory=$$dir $$dir*.c || exit; \
        done
+
+coverage-untested-functions: coverage-report
        grep '^function.*called 0 ' *.c.gcov \
                | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \
                > coverage-untested-functions