1SHELL= /bin/sh 2ED= ${.OBJDIR}/ed 3 4all: check 5 @: 6 7check: build test 8 @if grep -h '\*\*\*' errs.o scripts.o; then :; else \ 9 echo "tests completed successfully."; \ 10 fi 11 12build: mkscripts.sh 13 @if [ -f errs.o ]; then :; else \ 14 uudecode < ascii.d.uu ; \ 15 uudecode < ascii.r.uu ; \ 16 echo "building test scripts for $(ED) ..."; \ 17 $(SHELL) mkscripts.sh $(ED); \ 18 fi 19 20test: build ckscripts.sh 21 @echo testing $(ED) ... 22 @$(SHELL) ckscripts.sh $(ED) 23 24clean: 25 rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r 26