Module Name: src Committed By: apb Date: Sun Aug 24 17:17:24 UTC 2014
Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: Let "make clean" delete the files and dirs created by some of the tests. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.bin/make/unit-tests/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/unit-tests/Makefile diff -u src/usr.bin/make/unit-tests/Makefile:1.47 src/usr.bin/make/unit-tests/Makefile:1.48 --- src/usr.bin/make/unit-tests/Makefile:1.47 Sun Aug 24 11:52:45 2014 +++ src/usr.bin/make/unit-tests/Makefile Sun Aug 24 17:17:24 2014 @@ -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