xref: /csrg-svn/share/mk/bsd.doc.mk (revision 64197)
1*64197Smckusick#	@(#)bsd.doc.mk	8.1 (Berkeley) 08/14/93
244240Sbostic
344752SbosticBIB?=		bib
458291SbosticEQN?=		eqn
558291SbosticGREMLIN?=	grn
644752SbosticGRIND?=		vgrind -f
744752SbosticINDXBIB?=	indxbib
856723SmckusickPIC?=		pic
944752SbosticREFER?=		refer
1061663SbosticROFF?=		groff -M/usr/share/tmac -M/usr/old/lib/tmac ${MACROS} ${PAGES}
1144752SbosticSOELIM?=	soelim
1258291SbosticTBL?=		tbl
1344240Sbostic
1444752Sbostic.PATH: ${.CURDIR}
1544240Sbostic
1664112Selan.if !target(all)
1764112Selan.MAIN: all
1864112Selanall: paper.ps
1964112Selan.endif
2064112Selan
2161567Sbostic.if !target(paper.ps)
2261567Sbosticpaper.ps: ${SRCS}
2361567Sbostic	${ROFF} ${SRCS} > ${.TARGET}
2461567Sbostic.endif
2561567Sbostic
2644752Sbostic.if !target(print)
2758291Sbosticprint: paper.ps
2858291Sbostic	lpr -P${PRINTER} paper.ps
2944240Sbostic.endif
3044240Sbostic
3150804Sbostic.if !target(manpages)
3250804Sbosticmanpages:
3350804Sbostic.endif
3450804Sbostic
3551651Sbostic.if !target(obj)
3651651Sbosticobj:
3751651Sbostic.endif
3851651Sbostic
3944752Sbosticclean cleandir:
4044752Sbostic	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
4144752Sbostic
4244752SbosticFILES?=	${SRCS}
4344240Sbosticinstall:
4444752Sbostic	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
4544752Sbostic	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
4644752Sbostic
4744752Sbosticspell: ${SRCS}
4844752Sbostic	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
4944752Sbostic
5044752SbosticBINDIR?=	/usr/share/doc
5144752SbosticBINGRP?=	bin
5244752SbosticBINOWN?=	bin
5344752SbosticBINMODE?=	444
54