Only tweak DESTDIR, etc if actively invoking "make check"

This fixes "make installworld"/"make install" (standard use).
This commit is contained in:
ngie 2017-08-02 20:23:25 +00:00
parent bdf5887206
commit d935ed8e74

View File

@ -101,7 +101,7 @@ realcheck: .PHONY
fi
@env ${TESTS_ENV:Q} ${KYUA} test -k ${CHECKDIR}/Kyuafile
.ifdef _TESTS_USE_OBJDIR
.if defined(_TESTS_USE_OBJDIR) && make(check)
DESTDIR:= ${.OBJDIR}/checkdir
CLEANDIRS+= ${DESTDIR}