tests/make: simplify selection of the files to be copied

No functional change.
This commit is contained in:
rillig 2021-04-17 11:21:17 +00:00
parent 3c425c406d
commit eefa5d1cf5

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb Exp $
# $NetBSD: Makefile,v 1.3 2021/04/17 11:21:17 rillig Exp $
# The tests for make(1) are maintained in src/usr.bin/make/unit-tests
# (UNIT_TESTS_DISTDIR). We copy them verbatim to ${FILESDIR}/unit-tests
@ -28,11 +28,10 @@ UNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests
DISTFILES!= (cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.exp)
# Instruct bsd.files.mk to make the copies
.for f in ${DISTFILES}
_file := ${UNIT_TESTS_DISTDIR}/${f}
FILES+= ${UNIT_TESTS_DISTDIR}/${f}
FILESNAME_${_file} := ${_file:T}
FILESDIR_${_file} := ${UNIT_TESTS_DIR}
.for f in ${DISTFILES:S,^,${UNIT_TESTS_DISTDIR}/,}
FILES+= ${f}
FILESNAME_${f}= ${f:T}
FILESDIR_${f}= ${UNIT_TESTS_DIR}
.endfor
.include <bsd.test.mk>