xref: /csrg-svn/share/mk/bsd.doc.mk (revision 56723)
1*56723Smckusick#	@(#)bsd.doc.mk	5.6 (Berkeley) 11/12/92
244240Sbostic
345869SkarelsPRINTER=psc
444240Sbostic
544752SbosticBIB?=		bib
645869SkarelsEQN?=		deqn -P${PRINTER}
744752SbosticGREMLIN?=	grn -P${PRINTER}
844752SbosticGRIND?=		vgrind -f
944752SbosticINDXBIB?=	indxbib
10*56723SmckusickPIC?=		pic
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
2350804Sbostic.if !target(manpages)
2450804Sbosticmanpages:
2550804Sbostic.endif
2650804Sbostic
2751651Sbostic.if !target(obj)
2851651Sbosticobj:
2951651Sbostic.endif
3051651Sbostic
3144752Sbosticclean cleandir:
3244752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
3344752Sbostic
3444752SbosticFILES?=	${SRCS}
3544240Sbosticinstall:
3644752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
3744752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
3844752Sbostic
3944752Sbosticspell: ${SRCS}
4044752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
4144752Sbostic
4244752SbosticBINDIR?=	/usr/share/doc
4344752SbosticBINGRP?=	bin
4444752SbosticBINOWN?=	bin
4544752SbosticBINMODE?=	444
46