1 1.33 christos # $NetBSD: bsd.doc.mk,v 1.33 1997/06/28 01:22:59 christos Exp $ 2 1.19 cgd # @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93 3 1.1 cgd 4 1.28 mycroft .include <bsd.own.mk> 5 1.28 mycroft 6 1.26 mycroft .MAIN: all 7 1.29 mycroft .PHONY: cleandoc docinstall print spell 8 1.32 mycroft realinstall: docinstall 9 1.30 mycroft clean cleandir: cleandoc 10 1.26 mycroft 11 1.1 cgd BIB?= bib 12 1.8 cgd EQN?= eqn 13 1.8 cgd GREMLIN?= grn 14 1.1 cgd GRIND?= vgrind -f 15 1.1 cgd INDXBIB?= indxbib 16 1.8 cgd PIC?= pic 17 1.1 cgd REFER?= refer 18 1.19 cgd ROFF?= groff -M/usr/share/tmac ${MACROS} ${PAGES} 19 1.1 cgd SOELIM?= soelim 20 1.8 cgd TBL?= tbl 21 1.1 cgd 22 1.18 cgd .if !target(all) 23 1.18 cgd all: paper.ps 24 1.18 cgd .endif 25 1.18 cgd 26 1.18 cgd .if !target(paper.ps) 27 1.18 cgd paper.ps: ${SRCS} 28 1.18 cgd ${ROFF} ${SRCS} > ${.TARGET} 29 1.18 cgd .endif 30 1.8 cgd 31 1.1 cgd .if !target(print) 32 1.18 cgd print: paper.ps 33 1.18 cgd lpr -P${PRINTER} paper.ps 34 1.1 cgd .endif 35 1.1 cgd 36 1.29 mycroft cleandoc: 37 1.18 cgd rm -f paper.* [eE]rrs mklog ${CLEANFILES} 38 1.14 mycroft 39 1.23 christos .if !defined(NODOC) 40 1.23 christos FILES?= ${SRCS} 41 1.23 christos .for F in ${FILES} ${EXTRA} Makefile 42 1.33 christos docinstall:: ${DESTDIR}${DOCDIR}/${DIR}/${F} 43 1.23 christos .if !defined(UPDATE) 44 1.33 christos .PHONY: ${DESTDIR}${DOCDIR}/${DIR}/${F} 45 1.23 christos .endif 46 1.23 christos .if !defined(BUILD) 47 1.33 christos ${DESTDIR}${DOCDIR}/${DIR}/${F}: .MADE 48 1.23 christos .endif 49 1.23 christos 50 1.33 christos .PRECIOUS: ${DESTDIR}${DOCDIR}/${DIR}/${F} 51 1.33 christos ${DESTDIR}${DOCDIR}/${DIR}/${F}: ${F} 52 1.33 christos ${INSTALL} -c -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} ${.ALLSRC} \ 53 1.23 christos ${.TARGET} 54 1.23 christos .endfor 55 1.28 mycroft .endif 56 1.28 mycroft 57 1.28 mycroft .if !target(docinstall) 58 1.23 christos docinstall:: 59 1.22 perry .endif 60 1.1 cgd 61 1.1 cgd spell: ${SRCS} 62 1.18 cgd spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell 63 1.31 mycroft 64 1.31 mycroft depend includes lint obj tags: 65