From: Ævar Arnfjörð Bjarmason Date: Sun, 25 Jul 2010 19:52:41 +0000 (+0000) Subject: Makefile: Split out the untested functions target X-Git-Tag: v1.7.3-rc0~2^2~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5eed98104853dfed63e5c9f2a6214df74f7b0a7;p=git.git Makefile: Split out the untested functions target 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 Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index e1e150df9..11f1df278 100644 --- 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