xref: /freebsd/usr.bin/mkimg/tests/Makefile (revision 605b213ee1b7bf41cdbf64d6f6e169e36fae0db5)
1cd0b4a3cSMarcel Moolenaar# $FreeBSD$
2cd0b4a3cSMarcel Moolenaar
3*605b213eSEnji Cooper.PATH:	${.CURDIR}
4*605b213eSEnji Cooper
543faedc1SGlen BarberPACKAGE=	tests
643faedc1SGlen Barber
7458cbf0aSEnji CooperATF_TESTS_SH=	mkimg_test
8cd0b4a3cSMarcel Moolenaar
9cd0b4a3cSMarcel MoolenaarSOURCES!=	cd ${.CURDIR}; echo *.uu
10430f7286SEnji Cooper${PACKAGE}FILES+=		${SOURCES:S,.gz.uu,,g}
11cd0b4a3cSMarcel Moolenaar
12*605b213eSEnji Cooper.for f in ${${PACKAGE}FILES}
13*605b213eSEnji Cooper$f: $f.gz.uu
14*605b213eSEnji Cooper	uudecode -p ${.ALLSRC} | gunzip -c > ${.TARGET}
15*605b213eSEnji Cooper.endfor
16cd0b4a3cSMarcel Moolenaar
17430f7286SEnji CooperCLEANFILES+=	${${PACKAGE}FILES}}
18d60351dfSMarcel Moolenaar
19cd0b4a3cSMarcel Moolenaarrebase:
20cd0b4a3cSMarcel Moolenaar	(cd ${.CURDIR}; atf-sh mkimg.sh rebase)
21cd0b4a3cSMarcel Moolenaar
22cd0b4a3cSMarcel Moolenaar.include <bsd.test.mk>
23