xref: /dragonfly/bin/ed/test/Makefile (revision 10cbe914)
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
4SHELL=	/bin/sh
5ED=	${.OBJDIR}/ed
6
7all: check
8	@:
9
10check: build test
11	@if grep -h '\*\*\*' errs.o scripts.o; then :; else \
12		echo "tests completed successfully."; \
13	fi
14
15build: 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
23test: build ckscripts.sh
24	@echo testing $(ED) ...
25	@$(SHELL) ckscripts.sh $(ED)
26
27clean:
28	rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r
29