freebsd-skq/usr.bin/mkimg/tests/Makefile
Enji Cooper 301441dcd8 Fix "make rebase" after ^/head@r315776
"make rebase" can be used for rebasing the output files from mkimg
after making a change to mkimg. This will come in handy soon, per
bug 219673.

MFC after:	3 days
Sponsored by:	Dell EMC Isilon
2017-05-31 07:49:49 +00:00

24 lines
412 B
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}
PACKAGE= tests
_REBASE_SCRIPT= mkimg_test
ATF_TESTS_SH= ${_REBASE_SCRIPT}
SOURCES!= cd ${.CURDIR}; echo *.uu
${PACKAGE}FILES+= ${SOURCES:S,.gz.uu,,g}
.for f in ${${PACKAGE}FILES}
$f: $f.gz.uu
uudecode -p ${.ALLSRC} | gunzip -c > ${.TARGET}
.endfor
CLEANFILES+= ${${PACKAGE}FILES}}
rebase: .PHONY
(cd ${.CURDIR}; atf-sh ${_REBASE_SCRIPT}.sh rebase)
.include <bsd.test.mk>