NetBSD/share/mk/bsd.doc.mk

70 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: bsd.doc.mk,v 1.32 1997/05/09 13:25:47 mycroft Exp $
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
1997-05-07 19:53:28 +04:00
.include <bsd.own.mk>
1997-05-07 00:54:31 +04:00
.MAIN: all
1997-05-07 20:35:44 +04:00
.PHONY: cleandoc docinstall print spell
realinstall: docinstall
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
BINDIR?= /usr/share/doc
BINGRP?= bin
BINOWN?= bin
BINMODE?= 444
1994-06-19 05:07:24 +04:00
.if !target(all)
all: paper.ps
.endif
.if !target(paper.ps)
paper.ps: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}
.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} paper.ps
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 !defined(NODOC)
1993-03-21 12:45:37 +03:00
FILES?= ${SRCS}
.for F in ${FILES} ${EXTRA} Makefile
docinstall:: ${DESTDIR}${BINDIR}/${DIR}/${F}
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${BINDIR}/${DIR}/${F}
.endif
.if !defined(BUILD)
${DESTDIR}${BINDIR}/${DIR}/${F}: .MADE
.endif
1993-03-21 12:45:37 +03:00
.PRECIOUS: ${DESTDIR}${BINDIR}/${DIR}/${F}
${DESTDIR}${BINDIR}/${DIR}/${F}: ${F}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.ALLSRC} \
${.TARGET}
.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}
1994-06-19 05:07:24 +04:00
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
1997-05-07 23:09:47 +04:00
depend includes lint obj tags: