svn commit: r321167 - stable/11/usr.bin/mkimg/tests
Ngie Cooper
ngie at FreeBSD.org
Tue Jul 18 18:54:55 UTC 2017
Author: ngie
Date: Tue Jul 18 18:54:54 2017
New Revision: 321167
URL: https://svnweb.freebsd.org/changeset/base/321167
Log:
MFC r319293:
Formalize the dependent/dependency relationship for <foo>.gz.uu vs <foo>
This helps ensure that the output files are regenerated if the input files
change, after the output files have been created.
Modified:
stable/11/usr.bin/mkimg/tests/Makefile
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/mkimg/tests/Makefile
==============================================================================
--- stable/11/usr.bin/mkimg/tests/Makefile Tue Jul 18 18:54:47 2017 (r321166)
+++ stable/11/usr.bin/mkimg/tests/Makefile Tue Jul 18 18:54:54 2017 (r321167)
@@ -1,5 +1,7 @@
# $FreeBSD$
+.PATH: ${.CURDIR}
+
PACKAGE= tests
_REBASE_SCRIPT= mkimg_test
@@ -8,8 +10,10 @@ ATF_TESTS_SH= ${_REBASE_SCRIPT}
SOURCES!= cd ${.CURDIR}; echo *.uu
${PACKAGE}FILES+= ${SOURCES:S,.gz.uu,,g}
-${${PACKAGE}FILES}:
- uudecode -p ${.CURDIR}/${.TARGET}.gz.uu | gunzip -c > ${.TARGET}
+.for f in ${${PACKAGE}FILES}
+$f: $f.gz.uu
+ uudecode -p ${.ALLSRC} | gunzip -c > ${.TARGET}
+.endfor
CLEANFILES+= ${${PACKAGE}FILES}}
More information about the svn-src-all
mailing list