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/3ff1c14cb8b9
branches: trunk
changeset: 378574:3ff1c14cb8b9
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 f398e3d7f5a2 -r 3ff1c14cb8b9 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 @@ 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>
Home |
Main Index |
Thread Index |
Old Index