NetBSD/bin/ed/test/Makefile

29 lines
531 B
Makefile
Raw Normal View History

2003-10-26 06:50:07 +03:00
# $NetBSD: Makefile,v 1.12 2003/10/26 03:50:07 lukem Exp $
1995-03-21 12:01:59 +03:00
2003-10-26 06:50:07 +03:00
.include <bsd.own.mk>
ED?= ../obj/ed
all: check
@:
check: build test
@if grep -h '\*\*\*' errs.o scripts.o; then :; else \
echo "tests completed successfully."; \
fi
1993-04-10 15:46:38 +04:00
build: mkscripts.sh
@if [ -f errs.o ]; then :; else \
echo "building test scripts for $(ED) ..."; \
2003-10-26 06:50:07 +03:00
${HOST_SH} ${.CURDIR}/mkscripts.sh $(ED); \
fi
1993-04-10 15:46:38 +04:00
test: build ckscripts.sh
@echo testing $(ED) ...
2003-10-26 06:50:07 +03:00
@${HOST_SH} ckscripts.sh $(ED)
clean:
rm -f *.ed *.red *.[oz] *~
2003-10-26 06:50:07 +03:00
.include <bsd.prog.mk>