xref: /freebsd/bin/ed/test/Makefile (revision f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
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