xref: /csrg-svn/share/mk/bsd.doc.mk (revision 50804)
1*50804Sbostic#	@(#)bsd.doc.mk	5.4 (Berkeley) 08/07/91
244240Sbostic
345869SkarelsPRINTER=psc
444240Sbostic
544752SbosticBIB?=		bib
645869SkarelsEQN?=		deqn -P${PRINTER}
744752SbosticGREMLIN?=	grn -P${PRINTER}
844752SbosticGRIND?=		vgrind -f
944752SbosticINDXBIB?=	indxbib
1044752SbosticPIC?=		pic -P${PRINTER}
1144752SbosticREFER?=		refer
1245869SkarelsROFF?=		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
23*50804Sbostic.if !target(manpages)
24*50804Sbosticmanpages:
25*50804Sbostic.endif
26*50804Sbostic
2744752Sbosticclean cleandir:
2844752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
2944752Sbostic
3044752SbosticFILES?=	${SRCS}
3144240Sbosticinstall:
3244752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
3344752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
3444752Sbostic
3544752Sbosticspell: ${SRCS}
3644752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
3744752Sbostic
3844752SbosticBINDIR?=	/usr/share/doc
3944752SbosticBINGRP?=	bin
4044752SbosticBINOWN?=	bin
4144752SbosticBINMODE?=	444
42