Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/make tests/make: simplify selection of the fil...



details:   https://anonhg.NetBSD.org/src/rev/1f95dc0fbdea
branches:  trunk
changeset: 961373:1f95dc0fbdea
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 17 11:21:17 2021 +0000

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

No functional change.

diffstat:

 tests/usr.bin/make/Makefile |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 1677c14bee12 -r 1f95dc0fbdea tests/usr.bin/make/Makefile
--- a/tests/usr.bin/make/Makefile       Sat Apr 17 11:01:34 2021 +0000
+++ b/tests/usr.bin/make/Makefile       Sat Apr 17 11:21:17 2021 +0000
@@ -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 @@
 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>



Home | Main Index | Thread Index | Old Index