Module Name:    src
Committed By:   rillig
Date:           Sat Apr 17 11:21:17 UTC 2021

Modified Files:
        src/tests/usr.bin/make: Makefile

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

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/make/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/make/Makefile
diff -u src/tests/usr.bin/make/Makefile:1.2 src/tests/usr.bin/make/Makefile:1.3
--- src/tests/usr.bin/make/Makefile:1.2	Fri Aug 22 16:45:32 2014
+++ src/tests/usr.bin/make/Makefile	Sat Apr 17 11:21:17 2021
@@ -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.
 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>

Reply via email to