xref: /freebsd/bin/ed/test/Makefile (revision 2be1a816b9ff69588e55be0a84cbe2a31efc0f2f)
1# $FreeBSD$
2
3SHELL=	/bin/sh
4ED=	${.OBJDIR}/ed
5
6all: check
7	@:
8
9check: build test
10	@if grep -h '\*\*\*' errs.o scripts.o; then :; else \
11		echo "tests completed successfully."; \
12	fi
13
14build: mkscripts.sh
15	@if [ -f errs.o ]; then :; else \
16		uudecode < ascii.d.uu ; \
17		uudecode < ascii.r.uu ; \
18		echo "building test scripts for $(ED) ..."; \
19		$(SHELL) mkscripts.sh $(ED); \
20	fi
21
22test: build ckscripts.sh
23	@echo testing $(ED) ...
24	@$(SHELL) ckscripts.sh $(ED)
25
26clean:
27	rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r
28