301441dcd8
"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
24 lines
412 B
Makefile
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>
|