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