xref: /csrg-svn/share/mk/bsd.doc.mk (revision 44752)
1*44752Sbostic#	@(#)bsd.doc.mk	5.2 (Berkeley) 06/30/90
244240Sbostic
3*44752SbosticPRINTER=lz
444240Sbostic
5*44752SbosticBIB?=		bib
6*44752SbosticEQN?=		/usr/local/deqn -P${PRINTER}
7*44752SbosticGREMLIN?=	grn -P${PRINTER}
8*44752SbosticGRIND?=		vgrind -f
9*44752SbosticINDXBIB?=	indxbib
10*44752SbosticPIC?=		pic -P${PRINTER}
11*44752SbosticREFER?=		refer
12*44752SbosticROFF?=		psroff -t ${MACROS} ${PAGES} -P${PRINTER}
13*44752SbosticSOELIM?=	soelim
14*44752SbosticTBL?=		dtbl -P${PRINTER}
1544240Sbostic
16*44752Sbostic.PATH: ${.CURDIR}
1744240Sbostic
18*44752Sbostic.if !target(print)
19*44752Sbosticprint: paper.${PRINTER}
20*44752Sbostic	lpr -P${PRINTER} paper.${PRINTER}
2144240Sbostic.endif
2244240Sbostic
23*44752Sbosticclean cleandir:
24*44752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
25*44752Sbostic
26*44752SbosticFILES?=	${SRCS}
2744240Sbosticinstall:
28*44752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
29*44752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
30*44752Sbostic
31*44752Sbosticspell: ${SRCS}
32*44752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
33*44752Sbostic
34*44752SbosticBINDIR?=	/usr/share/doc
35*44752SbosticBINGRP?=	bin
36*44752SbosticBINOWN?=	bin
37*44752SbosticBINMODE?=	444
38