mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
28 lines
507 B
Makefile
28 lines
507 B
Makefile
# $Id$
|
|
|
|
SHELL= /bin/sh
|
|
ED= ${.OBJDIR}/ed
|
|
|
|
all: check
|
|
@:
|
|
|
|
check: build test
|
|
@if grep -h '\*\*\*' errs.o scripts.o; then :; else \
|
|
echo "tests completed successfully."; \
|
|
fi
|
|
|
|
build: mkscripts.sh
|
|
@if [ -f errs.o ]; then :; else \
|
|
uudecode < ascii.d.uu ; \
|
|
uudecode < ascii.r.uu ; \
|
|
echo "building test scripts for $(ED) ..."; \
|
|
$(SHELL) mkscripts.sh $(ED); \
|
|
fi
|
|
|
|
test: build ckscripts.sh
|
|
@echo testing $(ED) ...
|
|
@$(SHELL) ckscripts.sh $(ED)
|
|
|
|
clean:
|
|
rm -f *.ed *.red *.[oz] *~ ascii.d ascii.r
|