70 lines
1.3 KiB
Makefile
70 lines
1.3 KiB
Makefile
# $NetBSD: bsd.doc.mk,v 1.32 1997/05/09 13:25:47 mycroft Exp $
|
|
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.MAIN: all
|
|
.PHONY: cleandoc docinstall print spell
|
|
realinstall: docinstall
|
|
clean cleandir: cleandoc
|
|
|
|
BIB?= bib
|
|
EQN?= eqn
|
|
GREMLIN?= grn
|
|
GRIND?= vgrind -f
|
|
INDXBIB?= indxbib
|
|
PIC?= pic
|
|
REFER?= refer
|
|
ROFF?= groff -M/usr/share/tmac ${MACROS} ${PAGES}
|
|
SOELIM?= soelim
|
|
TBL?= tbl
|
|
|
|
BINDIR?= /usr/share/doc
|
|
BINGRP?= bin
|
|
BINOWN?= bin
|
|
BINMODE?= 444
|
|
|
|
.if !target(all)
|
|
all: paper.ps
|
|
.endif
|
|
|
|
.if !target(paper.ps)
|
|
paper.ps: ${SRCS}
|
|
${ROFF} ${SRCS} > ${.TARGET}
|
|
.endif
|
|
|
|
.if !target(print)
|
|
print: paper.ps
|
|
lpr -P${PRINTER} paper.ps
|
|
.endif
|
|
|
|
cleandoc:
|
|
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
|
|
|
|
.if !defined(NODOC)
|
|
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
|
|
|
|
.PRECIOUS: ${DESTDIR}${BINDIR}/${DIR}/${F}
|
|
${DESTDIR}${BINDIR}/${DIR}/${F}: ${F}
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.ALLSRC} \
|
|
${.TARGET}
|
|
.endfor
|
|
.endif
|
|
|
|
.if !target(docinstall)
|
|
docinstall::
|
|
.endif
|
|
|
|
spell: ${SRCS}
|
|
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
|
|
|
|
depend includes lint obj tags:
|