1 1.48 mycroft # $NetBSD: bsd.doc.mk,v 1.48 2000/06/06 09:53:29 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.47 mycroft .PRECIOUS: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@} 57 1.23 christos .if !defined(UPDATE) 58 1.46 mycroft .PHONY: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@} 59 1.23 christos .endif 60 1.46 mycroft 61 1.48 mycroft __docinstall: .USE 62 1.48 mycroft ${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${DOCOWN} \ 63 1.48 mycroft -g ${DOCGRP} -m ${DOCMODE} ${.ALLSRC} ${.TARGET} 64 1.48 mycroft 65 1.46 mycroft .for F in ${ALLFILES} 66 1.43 fredb .if !defined(BUILD) && !make(all) && !make(${F}) 67 1.33 christos ${DESTDIR}${DOCDIR}/${DIR}/${F}: .MADE 68 1.23 christos .endif 69 1.48 mycroft ${DESTDIR}${DOCDIR}/${DIR}/${F}: ${F} __docinstall 70 1.23 christos .endfor 71 1.28 mycroft .endif 72 1.28 mycroft 73 1.28 mycroft .if !target(docinstall) 74 1.23 christos docinstall:: 75 1.22 perry .endif 76 1.1 cgd 77 1.1 cgd spell: ${SRCS} 78 1.36 christos spell ${.ALLSRC} | sort | comm -23 - spell.ok > paper.spell 79 1.31 mycroft 80 1.31 mycroft depend includes lint obj tags: 81 1.45 tron 82 1.45 tron dependall: all 83 1.36 christos 84 1.36 christos .include <bsd.obj.mk> 85