diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-05-31 07:42:14 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-05-31 07:42:14 +0000 |
commit | 605b213ee1b7bf41cdbf64d6f6e169e36fae0db5 (patch) | |
tree | 7a73930b844caca7705106cf9d6e196b57d703f7 | |
parent | ab0dffafb704e258ce559a104fe0139df03d3f51 (diff) | |
download | src-605b213ee1b7bf41cdbf64d6f6e169e36fae0db5.tar.gz src-605b213ee1b7bf41cdbf64d6f6e169e36fae0db5.zip |
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.
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=319293
-rw-r--r-- | usr.bin/mkimg/tests/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mkimg/tests/Makefile b/usr.bin/mkimg/tests/Makefile index bdf9a78771b5..37865898aa46 100644 --- a/usr.bin/mkimg/tests/Makefile +++ b/usr.bin/mkimg/tests/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.PATH: ${.CURDIR} + PACKAGE= tests ATF_TESTS_SH= mkimg_test @@ -7,8 +9,10 @@ ATF_TESTS_SH= mkimg_test 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}} |