Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / bin / ed / test / Makefile
1 # $FreeBSD: src/bin/ed/test/Makefile,v 1.9 1999/08/27 23:14:17 peter Exp $
2 # $DragonFly: src/bin/ed/test/Makefile,v 1.2 2003/06/17 04:22:50 dillon Exp $
3
4 SHELL=  /bin/sh
5 ED=     ${.OBJDIR}/ed
6
7 all: check
8         @:
9
10 check: build test
11         @if grep -h '\*\*\*' errs.o scripts.o; then :; else \
12                 echo "tests completed successfully."; \
13         fi
14
15 build: mkscripts.sh
16         @if [ -f errs.o ]; then :; else \
17                 uudecode < ascii.d.uu ; \
18                 uudecode < ascii.r.uu ; \
19                 echo "building test scripts for $(ED) ..."; \
20                 $(SHELL) mkscripts.sh $(ED); \
21         fi
22
23 test: build ckscripts.sh
24         @echo testing $(ED) ...
25         @$(SHELL) ckscripts.sh $(ED)
26
27 clean:
28         rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r