Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 07:42:14 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319293 - head/usr.bin/mkimg/tests
Message-ID:  <201705310742.v4V7gEgP097188@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed May 31 07:42:14 2017
New Revision: 319293
URL: https://svnweb.freebsd.org/changeset/base/319293

Log:
  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

Modified:
  head/usr.bin/mkimg/tests/Makefile

Modified: head/usr.bin/mkimg/tests/Makefile
==============================================================================
--- head/usr.bin/mkimg/tests/Makefile	Wed May 31 06:47:56 2017	(r319292)
+++ head/usr.bin/mkimg/tests/Makefile	Wed May 31 07:42:14 2017	(r319293)
@@ -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}}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705310742.v4V7gEgP097188>