1# $FreeBSD$ 2 3.PATH: ${.CURDIR} 4 5PACKAGE= tests 6 7_REBASE_SCRIPT= mkimg_test 8ATF_TESTS_SH= ${_REBASE_SCRIPT} 9 10SOURCES!= cd ${.CURDIR}; echo *.hex 11${PACKAGE}FILES+= ${SOURCES:S,.hex,,g} 12 13.for f in ${${PACKAGE}FILES} 14$f: $f.hex 15 sed -e '/^#.*/D' < ${.ALLSRC} > ${.TARGET} 16.endfor 17 18CLEANFILES+= ${${PACKAGE}FILES}} 19 20rebase: .PHONY 21 (cd ${.CURDIR}; /usr/libexec/atf-sh ${_REBASE_SCRIPT}.sh rebase) 22 23.include <bsd.test.mk> 24