1# $Id: doc.mk,v 1.4 2012/11/11 22:37:02 sjg Exp $ 2 3.if !target(__${.PARSEFILE}__) 4__${.PARSEFILE}__: 5 6BIB?= bib 7EQN?= eqn 8GREMLIN?= grn 9GRIND?= vgrind -f 10INDXBIB?= indxbib 11PIC?= pic 12REFER?= refer 13ROFF?= groff -M/usr/share/tmac ${MACROS} ${PAGES} 14SOELIM?= soelim 15TBL?= tbl 16 17.PATH: ${.CURDIR} 18 19.if !target(all) 20.MAIN: all 21all: paper.ps 22.endif 23 24.if !target(paper.ps) 25paper.ps: ${SRCS} 26 ${ROFF} ${SRCS} > ${.TARGET} 27.endif 28 29.if !target(print) 30print: paper.ps 31 lpr -P${PRINTER} paper.ps 32.endif 33 34.if !target(manpages) 35manpages: 36.endif 37 38.if !target(obj) 39obj: 40.endif 41 42clean cleandir: 43 rm -f paper.* [eE]rrs mklog ${CLEANFILES} 44 45.if ${MK_DOC} == "no" 46install: 47.else 48FILES?= ${SRCS} 49install: 50 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 51 Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR} 52.endif 53 54spell: ${SRCS} 55 spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell 56 57BINDIR?= /usr/share/doc 58BINGRP?= bin 59BINOWN?= bin 60BINMODE?= 444 61 62.include <own.mk> 63.endif 64