Module Name:    src
Committed By:   rillig
Date:           Mon Aug 10 18:20:28 UTC 2020

Modified Files:
        src/usr.bin/make: Makefile

Log Message:
make(1): clean up coverage files even if USE_COVERAGE is not set


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 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.84 src/usr.bin/make/Makefile:1.85
--- src/usr.bin/make/Makefile:1.84	Sun Aug  9 05:51:04 2020
+++ src/usr.bin/make/Makefile	Mon Aug 10 18:20:28 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.84 2020/08/09 05:51:04 rillig Exp $
+#	$NetBSD: Makefile,v 1.85 2020/08/10 18:20:28 rillig Exp $
 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
 
 PROG=	make
@@ -46,8 +46,8 @@ USE_COVERAGE?=	no		# works only with gcc
 .if ${USE_COVERAGE} == "yes"
 COPTS+=		--coverage -O0 -ggdb
 LDADD+=		--coverage
-CLEANFILES+=	${SRCS:.c=.gcda} ${SRCS:.c=.gcno} ${SRCS:=.gcov}
 .endif
+CLEANFILES+=	*.gcda *.gcno *.gcov
 
 # Whether to compile using the Undefined Behavior Sanitizer (GCC, Clang).
 USE_UBSAN?=	no

Reply via email to