Module Name: src Committed By: rillig Date: Mon Feb 22 20:45:46 UTC 2021
Modified Files: src/usr.bin/make: Makefile Log Message: make: fix report-coverage On NetBSD 8.0 it still worked. Maybe gcov doesn't support .c files as arguments anymore. Using the .gcda files works and is more reliable anyway since it covers the inline functions in the headers as well. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/usr.bin/make/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/Makefile diff -u src/usr.bin/make/Makefile:1.112 src/usr.bin/make/Makefile:1.113 --- src/usr.bin/make/Makefile:1.112 Sat Jan 30 16:05:45 2021 +++ src/usr.bin/make/Makefile Mon Feb 22 20:45:46 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.112 2021/01/30 16:05:45 rillig Exp $ +# $NetBSD: Makefile,v 1.113 2021/02/22 20:45:46 rillig Exp $ # @(#)Makefile 5.2 (Berkeley) 12/28/90 PROG= make @@ -202,7 +202,7 @@ test-coverage: .PHONY report-coverage: .PHONY @echo 'covered uncovered file' - @${GCOV} ${GCOV_OPTS} ${SRCS} 2>&1 \ + @${GCOV} ${GCOV_OPTS} *.gcda 2>&1 \ | perl -ne ${GCOV_PERL:Q} \ | sort -nr @sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov