xref: /original-bsd/usr.bin/ex/USD.doc/vitut/Makefile (revision 2d18f455)
1#
2# Copyright (c) 1986 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	6.1 (Berkeley) 05/30/86
7#
8SRCS=	vi.in vi.chars
9MACROS=	-msU
10PRINTER=Pdp
11TBL=	dtbl -${PRINTER}
12TROFF=	ditroff -${PRINTER}
13
14paper:	paper.${PRINTER} summary.${PRINTER} viapwh.${PRINTER}
15	lpr -${PRINTER} -n paper.${PRINTER}
16	lpr -${PRINTER} -n summary.${PRINTER}
17	lpr -${PRINTER} -n viapwh.${PRINTER}
18
19paper.${PRINTER}: ${SRCS}
20	${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
21
22summary.${PRINTER}: vi.summary
23	${TBL} vi.summary | ${TROFF} ${MACROS} -t > summary.${PRINTER}
24
25viapwh.${PRINTER}: vi.apwh.ms
26	${TROFF} ${MACROS} -t vi.viapwh > viapwh.${PRINTER}
27
28clean:
29	rm -f paper.[PT]* summary.[PT]* viapwh.[PT]* *.spell errs Errs make.out
30
31spell:	${SRCS}
32	@for i in ${SRCS}; do \
33		echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
34	done
35