xref: /freebsd/usr.bin/mkimg/tests/Makefile (revision 370d612f5e9d52a02d59332de288b577b4220f0e)
1cd0b4a3cSMarcel Moolenaar# $FreeBSD$
2cd0b4a3cSMarcel Moolenaar
3605b213eSEnji Cooper.PATH:	${.CURDIR}
4605b213eSEnji Cooper
543faedc1SGlen BarberPACKAGE=	tests
643faedc1SGlen Barber
7301441dcSEnji Cooper_REBASE_SCRIPT=	mkimg_test
8301441dcSEnji CooperATF_TESTS_SH=	${_REBASE_SCRIPT}
9cd0b4a3cSMarcel Moolenaar
10*370d612fSMarcel MoolenaarSOURCES!=	cd ${.CURDIR}; echo *.hex
11*370d612fSMarcel Moolenaar${PACKAGE}FILES+=		${SOURCES:S,.hex,,g}
12cd0b4a3cSMarcel Moolenaar
13605b213eSEnji Cooper.for f in ${${PACKAGE}FILES}
14*370d612fSMarcel Moolenaar$f: $f.hex
15*370d612fSMarcel Moolenaar	sed -e '/^#.*/D' < ${.ALLSRC} > ${.TARGET}
16605b213eSEnji Cooper.endfor
17cd0b4a3cSMarcel Moolenaar
18430f7286SEnji CooperCLEANFILES+=	${${PACKAGE}FILES}}
19d60351dfSMarcel Moolenaar
20301441dcSEnji Cooperrebase: .PHONY
21835adc68SMarcel Moolenaar	(cd ${.CURDIR}; /usr/libexec/atf-sh ${_REBASE_SCRIPT}.sh rebase)
22cd0b4a3cSMarcel Moolenaar
23cd0b4a3cSMarcel Moolenaar.include <bsd.test.mk>
24