xref: /csrg-svn/share/mk/bsd.doc.mk (revision 45869)
1*45869Skarels#	@(#)bsd.doc.mk	5.3 (Berkeley) 01/02/91
244240Sbostic
3*45869SkarelsPRINTER=psc
444240Sbostic
544752SbosticBIB?=		bib
6*45869SkarelsEQN?=		deqn -P${PRINTER}
744752SbosticGREMLIN?=	grn -P${PRINTER}
844752SbosticGRIND?=		vgrind -f
944752SbosticINDXBIB?=	indxbib
1044752SbosticPIC?=		pic -P${PRINTER}
1144752SbosticREFER?=		refer
12*45869SkarelsROFF?=		ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
1344752SbosticSOELIM?=	soelim
1444752SbosticTBL?=		dtbl -P${PRINTER}
1544240Sbostic
1644752Sbostic.PATH: ${.CURDIR}
1744240Sbostic
1844752Sbostic.if !target(print)
1944752Sbosticprint: paper.${PRINTER}
2044752Sbostic	lpr -P${PRINTER} paper.${PRINTER}
2144240Sbostic.endif
2244240Sbostic
2344752Sbosticclean cleandir:
2444752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
2544752Sbostic
2644752SbosticFILES?=	${SRCS}
2744240Sbosticinstall:
2844752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
2944752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
3044752Sbostic
3144752Sbosticspell: ${SRCS}
3244752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
3344752Sbostic
3444752SbosticBINDIR?=	/usr/share/doc
3544752SbosticBINGRP?=	bin
3644752SbosticBINOWN?=	bin
3744752SbosticBINMODE?=	444
38