1 1.12 lukem # $NetBSD: Makefile,v 1.12 2003/10/26 03:50:07 lukem Exp $ 2 1.11 cgd 3 1.12 lukem .include <bsd.own.mk> 4 1.12 lukem 5 1.12 lukem ED?= ../obj/ed 6 1.1 cgd 7 1.10 alm all: check 8 1.10 alm @: 9 1.10 alm 10 1.10 alm check: build test 11 1.10 alm @if grep -h '\*\*\*' errs.o scripts.o; then :; else \ 12 1.10 alm echo "tests completed successfully."; \ 13 1.10 alm fi 14 1.1 cgd 15 1.2 cgd build: mkscripts.sh 16 1.10 alm @if [ -f errs.o ]; then :; else \ 17 1.10 alm echo "building test scripts for $(ED) ..."; \ 18 1.12 lukem ${HOST_SH} ${.CURDIR}/mkscripts.sh $(ED); \ 19 1.10 alm fi 20 1.1 cgd 21 1.2 cgd test: build ckscripts.sh 22 1.10 alm @echo testing $(ED) ... 23 1.12 lukem @${HOST_SH} ckscripts.sh $(ED) 24 1.1 cgd 25 1.1 cgd clean: 26 1.10 alm rm -f *.ed *.red *.[oz] *~ 27 1.12 lukem 28 1.12 lukem .include <bsd.prog.mk> 29