1# $Id: doc.mk,v 1.5 2015/09/08 06:15:31 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 test -d ${DESTDIR}${DOCDIR}/${DIR} || \ 51 ${INSTALL} -d ${DOC_INSTALL_OWN} -m ${DIRMODE} ${DESTDIR}${DOCDIR}/${DIR} 52 ${INSTALL} ${COPY} ${DOC_INSTALL_OWN} -m ${DOCMODE} \ 53 Makefile ${FILES} ${EXTRA} ${DESTDIR}${DOCDIR}/${DIR} 54.endif 55 56spell: ${SRCS} 57 spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell 58 59.include <own.mk> 60 61.if !empty(DOCOWN) 62DOC_INSTALL_OWN?= -o ${DOCOWN} -g ${DOGGRP} 63.endif 64 65.endif 66