cac6fd1154
No-op change other than version update.
66 lines
1.1 KiB
Makefile
66 lines
1.1 KiB
Makefile
# $Id: doc.mk,v 1.6 2017/05/01 21:24:10 sjg Exp $
|
|
|
|
.if !target(__${.PARSEFILE}__)
|
|
__${.PARSEFILE}__:
|
|
|
|
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
|
|
|
|
.PATH: ${.CURDIR}
|
|
|
|
.if !target(all)
|
|
.MAIN: 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
|
|
|
|
.if !target(manpages)
|
|
manpages:
|
|
.endif
|
|
|
|
.if !target(obj)
|
|
obj:
|
|
.endif
|
|
|
|
clean cleandir:
|
|
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
|
|
|
|
.if ${MK_DOC} == "no"
|
|
install:
|
|
.else
|
|
FILES?= ${SRCS}
|
|
install:
|
|
test -d ${DESTDIR}${DOCDIR}/${DIR} || \
|
|
${INSTALL} -d ${DOC_INSTALL_OWN} -m ${DIRMODE} ${DESTDIR}${DOCDIR}/${DIR}
|
|
${INSTALL} ${COPY} ${DOC_INSTALL_OWN} -m ${DOCMODE} \
|
|
Makefile ${FILES} ${EXTRA} ${DESTDIR}${DOCDIR}/${DIR}
|
|
.endif
|
|
|
|
spell: ${SRCS}
|
|
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
|
|
|
|
.include <own.mk>
|
|
|
|
.if !empty(DOCOWN)
|
|
DOC_INSTALL_OWN?= -o ${DOCOWN} -g ${DOCGRP}
|
|
.endif
|
|
|
|
.endif
|