diff options
| author | apb <apb@NetBSD.org> | 2014-08-24 17:17:24 +0000 |
|---|---|---|
| committer | apb <apb@NetBSD.org> | 2014-08-24 17:17:24 +0000 |
| commit | 93335682d7a2a20ea542e83d4f88ddd95d6596d0 (patch) | |
| tree | 8cc0f7ec46823d2a0d51207e70551c383943cc3a /usr.bin/make | |
| parent | 550f972ed71f8b0204bcd0bf84bd6ed385cb73c0 (diff) | |
Let "make clean" delete the files and dirs created by some of the tests.
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/unit-tests/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/make/unit-tests/Makefile b/usr.bin/make/unit-tests/Makefile index 6347275ed7b..85fc5faf6b2 100644 --- a/usr.bin/make/unit-tests/Makefile +++ b/usr.bin/make/unit-tests/Makefile @@ -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 @@ OUTFILES= ${TESTNAMES:S/$/.out/} 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 |
