NetBSD/share/mk/bsd.doc.mk

85 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: bsd.doc.mk,v 1.50 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
.if !target(__initialized__)
__initialized__:
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
1997-05-07 19:53:28 +04:00
.include <bsd.own.mk>
1997-05-07 00:54:31 +04:00
.MAIN: all
.endif
1997-05-07 20:35:44 +04:00
.PHONY: cleandoc docinstall print spell
.if ${MKSHARE} != "no"
realinstall: docinstall
.endif
clean cleandir: cleandoc
1997-05-07 00:54:31 +04:00
1993-03-21 12:45:37 +03:00
BIB?= bib
EQN?= eqn
GREMLIN?= grn
1993-03-21 12:45:37 +03:00
GRIND?= vgrind -f
INDXBIB?= indxbib
PIC?= pic
1993-03-21 12:45:37 +03:00
REFER?= refer
ROFF?= groff -M/usr/share/tmac ${MACROS} ${PAGES}
1993-03-21 12:45:37 +03:00
SOELIM?= soelim
TBL?= tbl
1993-03-21 12:45:37 +03:00
1994-06-19 05:07:24 +04:00
.if !target(all)
.if ${MKSHARE} != "no"
realall: paper.ps
.else
realall:
.endif
1994-06-19 05:07:24 +04:00
.endif
.if !target(paper.ps)
paper.ps: ${SRCS}
${ROFF} ${.ALLSRC} > ${.TARGET}
1994-06-19 05:07:24 +04:00
.endif
1993-03-21 12:45:37 +03:00
.if !target(print)
1994-06-19 05:07:24 +04:00
print: paper.ps
lpr -P${PRINTER} ${.ALLSRC}
1993-03-21 12:45:37 +03:00
.endif
1997-05-07 20:35:44 +04:00
cleandoc:
1994-06-19 05:07:24 +04:00
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
.if ${MKDOC} != "no"
FILES?=${SRCS}
ALLFILES=Makefile ${FILES} ${EXTRA}
docinstall:: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@}
2000-06-06 13:22:00 +04:00
.PRECIOUS: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@}
.if !defined(UPDATE)
.PHONY: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@}
.endif
2000-06-06 13:53:29 +04:00
__docinstall: .USE
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${DOCOWN} \
-g ${DOCGRP} -m ${DOCMODE} ${.ALLSRC} ${.TARGET}
.for F in ${ALLFILES:O:u}
.if !defined(BUILD) && !make(all) && !make(${F})
${DESTDIR}${DOCDIR}/${DIR}/${F}: .MADE
.endif
2000-06-06 13:53:29 +04:00
${DESTDIR}${DOCDIR}/${DIR}/${F}: ${F} __docinstall
.endfor
.endif
1997-05-07 19:53:28 +04:00
.if !target(docinstall)
docinstall::
.endif
1993-03-21 12:45:37 +03:00
spell: ${SRCS}
spell ${.ALLSRC} | sort | comm -23 - spell.ok > paper.spell
1997-05-07 23:09:47 +04:00
depend includes lint obj tags:
2000-04-28 14:47:34 +04:00
dependall: all
.include <bsd.obj.mk>