1994-07-26 23:42:37 +04:00
|
|
|
# $NetBSD: bsd.doc.mk,v 1.20 1994/07/26 19:42:37 mycroft 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
|
|
|
|
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
|
|
|
|
|
|
|
.PATH: ${.CURDIR}
|
|
|
|
|
1994-06-19 05:07:24 +04:00
|
|
|
.if !target(all)
|
|
|
|
.MAIN: all
|
|
|
|
all: paper.ps
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(paper.ps)
|
|
|
|
paper.ps: ${SRCS}
|
|
|
|
${ROFF} ${SRCS} > ${.TARGET}
|
|
|
|
.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
|
|
|
|
lpr -P${PRINTER} paper.ps
|
1993-03-21 12:45:37 +03:00
|
|
|
.endif
|
|
|
|
|
1994-06-19 05:07:24 +04:00
|
|
|
.if !target(manpages)
|
|
|
|
manpages:
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(obj)
|
|
|
|
obj:
|
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1994-06-19 05:07:24 +04:00
|
|
|
clean cleandir:
|
|
|
|
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
|
1993-08-16 00:42:39 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
FILES?= ${SRCS}
|
|
|
|
install:
|
1994-06-19 05:07:24 +04:00
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
|
|
Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
spell: ${SRCS}
|
1994-06-19 05:07:24 +04:00
|
|
|
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
|
1993-08-23 20:44:18 +04:00
|
|
|
|
1994-06-19 05:07:24 +04:00
|
|
|
BINDIR?= /usr/share/doc
|
|
|
|
BINGRP?= bin
|
|
|
|
BINOWN?= bin
|
|
|
|
BINMODE?= 444
|
1994-07-26 23:42:37 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|