1 # $NetBSD: Makefile,v 1.11 1995/03/21 09:05:14 cgd Exp $ 2 3 SHELL= /bin/sh 4 ED= ../obj/ed 5 6 all: check 7 @: 8 9 check: build test 10 @if grep -h '\*\*\*' errs.o scripts.o; then :; else \ 11 echo "tests completed successfully."; \ 12 fi 13 14 build: mkscripts.sh 15 @if [ -f errs.o ]; then :; else \ 16 echo "building test scripts for $(ED) ..."; \ 17 $(SHELL) mkscripts.sh $(ED); \ 18 fi 19 20 test: build ckscripts.sh 21 @echo testing $(ED) ... 22 @$(SHELL) ckscripts.sh $(ED) 23 24 clean: 25 rm -f *.ed *.red *.[oz] *~ 26