aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-08-02 03:09:55 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-08-02 03:09:55 +0000
commitfee25c68476f9120a2ce612722dcf024ab41effd (patch)
tree4a1aa125ebaf60446cc575949bf6339239b43317
parent63c10f414b524687286026e0162c168d4d6f5ffb (diff)
downloadsrc-fee25c68476f9120a2ce612722dcf024ab41effd.tar.gz
src-fee25c68476f9120a2ce612722dcf024ab41effd.zip
Clean up DESTDIR, not CHECKDIR
While here, make the variable immediate to avoid silly mistakes that might result in wiping out / by accident if the variable is evaluated in a delayed manner due to poor use of $DESTDIR.
Notes
Notes: svn path=/projects/make-check-sandbox/; revision=321902
-rw-r--r--share/mk/suite.test.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/suite.test.mk b/share/mk/suite.test.mk
index f8ad44a84087..a2068fe9e328 100644
--- a/share/mk/suite.test.mk
+++ b/share/mk/suite.test.mk
@@ -102,8 +102,8 @@ realcheck: .PHONY
@env ${TESTS_ENV:Q} ${KYUA} test -k ${CHECKDIR}/Kyuafile
.ifdef _TESTS_USE_OBJDIR
-DESTDIR= ${.OBJDIR}/checkdir
-CLEANDIRS+= ${CHECKDIR}
+DESTDIR:= ${.OBJDIR}/checkdir
+CLEANDIRS+= ${DESTDIR}
# XXX (ngie): use daemon(1) and a pidfile to lock the directory?
beforecheck: