xref: /original-bsd/old/roff/USD.doc/troff/Makefile (revision 241757c4)
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.3 (Berkeley) 04/21/86
7#
8INTRO=	m0
9TUTOR=	m0a
10PAPER=	m1 m2 m3 m4
11APNDX1=	m5
12APNDX2=	table1
13APNDX3=	table2
14MACROS=	m.mac
15PRINTER=Pdp
16TBL=	dtbl -${PRINTER}
17TROFF=	ditroff -${PRINTER}
18LPR=	lpr -n -${PRINTER}
19
20paper:	intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER}
21paper:	apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER}
22	${LPR} intro.${PRINTER}
23	${LPR} tutor.${PRINTER}
24	${LPR} paper.${PRINTER}
25	${LPR} apndx1.${PRINTER}
26	${LPR} apndx2.${PRINTER}
27	${LPR} apndx3.${PRINTER}
28
29intro.${PRINTER}: ${INTRO}
30	${TROFF} -t ${MACROS} ${INTRO} > intro.${PRINTER}
31
32tutor.${PRINTER}: ${TUTOR}
33	${TBL} ${TUTOR} | ${TROFF} -t ${MACROS} - > tutor.${PRINTER}
34
35paper.${PRINTER}: ${PAPER}
36	${TBL} ${PAPER} | ${TROFF} -t ${MACROS} - > paper.${PRINTER}
37
38apndx1.${PRINTER}: ${APNDX1}
39	${TROFF} -t ${MACROS} ${APNDX1} > apndx1.${PRINTER}
40
41apndx2.${PRINTER}: ${APNDX2}
42	${TROFF} -t ${MACROS} ${APNDX2} > apndx2.${PRINTER}
43
44apndx3.${PRINTER}: ${APNDX3}
45	${TROFF} -t ${MACROS} ${APNDX3} > apndx3.${PRINTER}
46
47clean:
48	rm -f intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER} \
49		apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} \
50		*.spell errs Errs make.out
51
52spell:	${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}
53	@for i in ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}; do \
54		echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
55	done
56