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