Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests Let "make clean" delete the files an...
details: https://anonhg.NetBSD.org/src/rev/ec9d9dedbe58
branches: trunk
changeset: 331798:ec9d9dedbe58
user: apb <apb%NetBSD.org@localhost>
date: Sun Aug 24 17:17:24 2014 +0000
description:
Let "make clean" delete the files and dirs created by some of the tests.
diffstat:
usr.bin/make/unit-tests/Makefile | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 779aeed544b7 -r ec9d9dedbe58 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Sun Aug 24 17:07:00 2014 +0000
+++ b/usr.bin/make/unit-tests/Makefile Sun Aug 24 17:17:24 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2014/08/24 11:52:45 apb Exp $
+# $NetBSD: Makefile,v 1.48 2014/08/24 17:17:24 apb Exp $
#
# Unit tests for make(1)
# The main targets are:
@@ -64,8 +64,16 @@
all: ${OUTFILES}
+CLEANFILES += *.rawout *.out *.status *.tmp *.core *.tmp
+CLEANFILES += obj*.[och] lib*.a # posix1.mk
+CLEANFILES += issue* # suffixes.mk
+CLEANRECURSIVE += dir dummy # posix1.mk
+
clean:
- rm -f *.rawout *.out *.status *.tmp *.core *.tmp
+ rm -f ${CLEANFILES}
+.if !empty(CLEANRECURSIVE)
+ rm -rf ${CLEANRECURSIVE}
+.endif
TEST_MAKE?= ${.MAKE}
TOOL_SED?= sed
Home |
Main Index |
Thread Index |
Old Index