From b5eed98104853dfed63e5c9f2a6214df74f7b0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 25 Jul 2010 19:52:41 +0000 Subject: [PATCH] Makefile: Split out the untested functions target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e1e150df9c..11f1df2787 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 -- GitLab