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