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