xref: /freebsd/usr.bin/mkimg/tests/Makefile (revision 301441dcd8957439bab1d9d3fd739efb61fe50d3)
1cd0b4a3cSMarcel Moolenaar# $FreeBSD$
2cd0b4a3cSMarcel Moolenaar
3605b213eSEnji Cooper.PATH:	${.CURDIR}
4605b213eSEnji Cooper
543faedc1SGlen BarberPACKAGE=	tests
643faedc1SGlen Barber
7*301441dcSEnji Cooper_REBASE_SCRIPT=	mkimg_test
8*301441dcSEnji CooperATF_TESTS_SH=	${_REBASE_SCRIPT}
9cd0b4a3cSMarcel Moolenaar
10cd0b4a3cSMarcel MoolenaarSOURCES!=	cd ${.CURDIR}; echo *.uu
11430f7286SEnji Cooper${PACKAGE}FILES+=		${SOURCES:S,.gz.uu,,g}
12cd0b4a3cSMarcel Moolenaar
13605b213eSEnji Cooper.for f in ${${PACKAGE}FILES}
14605b213eSEnji Cooper$f: $f.gz.uu
15605b213eSEnji Cooper	uudecode -p ${.ALLSRC} | gunzip -c > ${.TARGET}
16605b213eSEnji Cooper.endfor
17cd0b4a3cSMarcel Moolenaar
18430f7286SEnji CooperCLEANFILES+=	${${PACKAGE}FILES}}
19d60351dfSMarcel Moolenaar
20*301441dcSEnji Cooperrebase: .PHONY
21*301441dcSEnji Cooper	(cd ${.CURDIR}; atf-sh ${_REBASE_SCRIPT}.sh rebase)
22cd0b4a3cSMarcel Moolenaar
23cd0b4a3cSMarcel Moolenaar.include <bsd.test.mk>
24