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