1SHELL= /bin/sh 2ED= ../obj/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 echo "building test scripts for $(ED) ..."; \ 15 $(SHELL) mkscripts.sh $(ED); \ 16 fi 17 18test: build ckscripts.sh 19 @echo testing $(ED) ... 20 @$(SHELL) ckscripts.sh $(ED) 21 22clean: 23 rm -f *.ed *.red *.[oz] *~ 24