1999-08-27 19:15:48 -04:00
|
|
|
# $FreeBSD$
|
1994-09-23 22:59:15 -04:00
|
|
|
|
1994-01-31 19:36:28 -05:00
|
|
|
SHELL= /bin/sh
|
1996-06-24 00:26:21 -04:00
|
|
|
ED= ${.OBJDIR}/ed
|
1993-06-18 09:00:14 -04:00
|
|
|
|
1994-01-31 19:36:28 -05:00
|
|
|
all: check
|
|
|
|
|
@:
|
|
|
|
|
|
|
|
|
|
check: build test
|
|
|
|
|
@if grep -h '\*\*\*' errs.o scripts.o; then :; else \
|
|
|
|
|
echo "tests completed successfully."; \
|
|
|
|
|
fi
|
1993-06-18 09:00:14 -04:00
|
|
|
|
|
|
|
|
build: mkscripts.sh
|
1994-01-31 19:36:28 -05:00
|
|
|
@if [ -f errs.o ]; then :; else \
|
1994-07-23 14:14:06 -04:00
|
|
|
uudecode < ascii.d.uu ; \
|
|
|
|
|
uudecode < ascii.r.uu ; \
|
1994-01-31 19:36:28 -05:00
|
|
|
echo "building test scripts for $(ED) ..."; \
|
|
|
|
|
$(SHELL) mkscripts.sh $(ED); \
|
|
|
|
|
fi
|
1993-06-18 09:00:14 -04:00
|
|
|
|
|
|
|
|
test: build ckscripts.sh
|
1994-01-31 19:36:28 -05:00
|
|
|
@echo testing $(ED) ...
|
|
|
|
|
@$(SHELL) ckscripts.sh $(ED)
|
1993-06-18 09:00:14 -04:00
|
|
|
|
|
|
|
|
clean:
|
1994-07-23 14:14:06 -04:00
|
|
|
rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r
|