xref: /csrg-svn/share/mk/bsd.doc.mk (revision 58291)
1*58291Sbostic#	@(#)bsd.doc.mk	5.7 (Berkeley) 02/27/93
244240Sbostic
344752SbosticBIB?=		bib
4*58291SbosticEQN?=		eqn
5*58291SbosticGREMLIN?=	grn
644752SbosticGRIND?=		vgrind -f
744752SbosticINDXBIB?=	indxbib
856723SmckusickPIC?=		pic
944752SbosticREFER?=		refer
10*58291SbosticROFF?=		groff ${MACROS} ${PAGES}
1144752SbosticSOELIM?=	soelim
12*58291SbosticTBL?=		tbl
1344240Sbostic
1444752Sbostic.PATH: ${.CURDIR}
1544240Sbostic
1644752Sbostic.if !target(print)
17*58291Sbosticprint: paper.ps
18*58291Sbostic	lpr -P${PRINTER} paper.ps
1944240Sbostic.endif
2044240Sbostic
2150804Sbostic.if !target(manpages)
2250804Sbosticmanpages:
2350804Sbostic.endif
2450804Sbostic
2551651Sbostic.if !target(obj)
2651651Sbosticobj:
2751651Sbostic.endif
2851651Sbostic
2944752Sbosticclean cleandir:
3044752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
3144752Sbostic
3244752SbosticFILES?=	${SRCS}
3344240Sbosticinstall:
3444752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
3544752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
3644752Sbostic
3744752Sbosticspell: ${SRCS}
3844752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
3944752Sbostic
4044752SbosticBINDIR?=	/usr/share/doc
4144752SbosticBINGRP?=	bin
4244752SbosticBINOWN?=	bin
4344752SbosticBINMODE?=	444
44