1993-03-21 12:45:37 +03:00
|
|
|
# @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
|
|
|
|
|
1993-03-27 15:17:32 +03:00
|
|
|
PRINTER=ps
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
BIB?= bib
|
1993-04-10 00:05:56 +04:00
|
|
|
EQN?= deqn -P${PRINTER}
|
1993-03-21 12:45:37 +03:00
|
|
|
GREMLIN?= grn -P${PRINTER}
|
|
|
|
GRIND?= vgrind -f
|
|
|
|
INDXBIB?= indxbib
|
|
|
|
PIC?= pic -P${PRINTER}
|
|
|
|
REFER?= refer
|
1993-04-10 00:05:56 +04:00
|
|
|
ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
|
1993-03-21 12:45:37 +03:00
|
|
|
SOELIM?= soelim
|
1993-04-10 00:05:56 +04:00
|
|
|
TBL?= dtbl -P${PRINTER}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}
|
|
|
|
|
|
|
|
.if !target(print)
|
|
|
|
print: paper.${PRINTER}
|
|
|
|
lpr -P${PRINTER} paper.${PRINTER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
clean cleandir:
|
|
|
|
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
|
1993-04-10 00:05:56 +04:00
|
|
|
rm -rf obj
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
FILES?= ${SRCS}
|
|
|
|
install:
|
1993-04-08 21:18:42 +04:00
|
|
|
@if [ ! -d "${DESTDIR}${BINDIR}/${DIR}" ]; then \
|
|
|
|
/bin/rm -f ${DESTDIR}${BINDIR}/${DIR} ; \
|
|
|
|
mkdir -p ${DESTDIR}${BINDIR}/${DIR} ; \
|
|
|
|
chown root.wheel ${DESTDIR}${BINDIR}/${DIR} ; \
|
|
|
|
chmod 755 ${DESTDIR}${BINDIR}/${DIR} ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi
|
1993-04-10 00:05:56 +04:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1993-03-21 12:45:37 +03:00
|
|
|
Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
|
|
|
|
|
|
|
|
spell: ${SRCS}
|
|
|
|
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
|
|
|
|
|
|
|
|
BINDIR?= /usr/share/doc
|
|
|
|
BINGRP?= bin
|
|
|
|
BINOWN?= bin
|
|
|
|
BINMODE?= 444
|