2001-06-01 21:49:32 +04:00
|
|
|
# $NetBSD: bsd.doc.mk,v 1.50 2001/06/01 17:49:33 tv Exp $
|
1994-06-30 09:31:04 +04:00
|
|
|
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
|
1993-03-27 15:17:32 +03:00
|
|
|
|
1997-10-11 12:16:24 +04:00
|
|
|
.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
|
1997-10-11 12:16:24 +04:00
|
|
|
.endif
|
|
|
|
|
1997-05-07 20:35:44 +04:00
|
|
|
.PHONY: cleandoc docinstall print spell
|
1999-02-12 04:10:06 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1997-05-09 17:25:46 +04:00
|
|
|
realinstall: docinstall
|
1998-09-27 20:31:11 +04:00
|
|
|
.endif
|
2001-06-01 21:49:32 +04:00
|
|
|
clean cleandir: cleandoc
|
1997-05-07 00:54:31 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
BIB?= bib
|
1993-06-10 02:00:27 +04:00
|
|
|
EQN?= eqn
|
|
|
|
GREMLIN?= grn
|
1993-03-21 12:45:37 +03:00
|
|
|
GRIND?= vgrind -f
|
|
|
|
INDXBIB?= indxbib
|
1993-06-10 02:00:27 +04:00
|
|
|
PIC?= pic
|
1993-03-21 12:45:37 +03:00
|
|
|
REFER?= refer
|
1994-06-30 09:31:04 +04:00
|
|
|
ROFF?= groff -M/usr/share/tmac ${MACROS} ${PAGES}
|
1993-03-21 12:45:37 +03:00
|
|
|
SOELIM?= soelim
|
1993-06-10 02:00:27 +04:00
|
|
|
TBL?= tbl
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-06-19 05:07:24 +04:00
|
|
|
.if !target(all)
|
1999-02-12 04:10:06 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
2000-01-22 22:31:00 +03:00
|
|
|
realall: paper.ps
|
1998-09-27 20:31:11 +04:00
|
|
|
.else
|
2000-01-22 22:31:00 +03:00
|
|
|
realall:
|
1998-09-27 20:31:11 +04:00
|
|
|
.endif
|
1994-06-19 05:07:24 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(paper.ps)
|
|
|
|
paper.ps: ${SRCS}
|
1997-12-21 18:40:37 +03:00
|
|
|
${ROFF} ${.ALLSRC} > ${.TARGET}
|
1994-06-19 05:07:24 +04:00
|
|
|
.endif
|
1993-06-10 02:00:27 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.if !target(print)
|
1994-06-19 05:07:24 +04:00
|
|
|
print: paper.ps
|
1997-12-21 18:40:37 +03:00
|
|
|
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}
|
1993-08-16 00:42:39 +04:00
|
|
|
|
1999-02-12 04:10:06 +03:00
|
|
|
.if ${MKDOC} != "no"
|
2000-06-06 09:40:47 +04:00
|
|
|
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}@}
|
1997-03-25 00:54:12 +03:00
|
|
|
.if !defined(UPDATE)
|
2000-06-06 09:40:47 +04:00
|
|
|
.PHONY: ${ALLFILES:@F@${DESTDIR}${DOCDIR}/${DIR}/${F}@}
|
1997-03-25 00:54:12 +03:00
|
|
|
.endif
|
2000-06-06 09:40:47 +04:00
|
|
|
|
2000-06-06 13:53:29 +04:00
|
|
|
__docinstall: .USE
|
|
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${DOCOWN} \
|
|
|
|
-g ${DOCGRP} -m ${DOCMODE} ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2001-05-08 07:19:51 +04:00
|
|
|
.for F in ${ALLFILES:O:u}
|
1999-09-05 01:48:33 +04:00
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
1997-06-28 05:22:59 +04:00
|
|
|
${DESTDIR}${DOCDIR}/${DIR}/${F}: .MADE
|
1997-01-17 04:15:55 +03:00
|
|
|
.endif
|
2000-06-06 13:53:29 +04:00
|
|
|
${DESTDIR}${DOCDIR}/${DIR}/${F}: ${F} __docinstall
|
1997-03-25 00:54:12 +03:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
1997-05-07 19:53:28 +04:00
|
|
|
.if !target(docinstall)
|
|
|
|
docinstall::
|
|
|
|
.endif
|
1997-03-25 00:54:12 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
spell: ${SRCS}
|
1997-12-21 18:40:37 +03:00
|
|
|
spell ${.ALLSRC} | sort | comm -23 - spell.ok > paper.spell
|
1997-05-07 23:09:47 +04:00
|
|
|
|
|
|
|
depend includes lint obj tags:
|
1997-12-21 18:40:37 +03:00
|
|
|
|
2000-04-28 14:47:34 +04:00
|
|
|
dependall: all
|
|
|
|
|
1997-12-21 18:40:37 +03:00
|
|
|
.include <bsd.obj.mk>
|