aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/mkimg/tests/Makefile8
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}}