Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | # @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91 |
2 | ||
3 | PRINTER=psc | |
4 | ||
5 | BIB?= bib | |
6 | EQN?= deqn -P${PRINTER} | |
7 | GREMLIN?= grn -P${PRINTER} | |
8 | GRIND?= vgrind -f | |
9 | INDXBIB?= indxbib | |
10 | PIC?= pic -P${PRINTER} | |
11 | REFER?= refer | |
12 | ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER} | |
13 | SOELIM?= soelim | |
14 | TBL?= dtbl -P${PRINTER} | |
15 | ||
16 | .PATH: ${.CURDIR} | |
17 | ||
18 | .if !target(print) | |
19 | print: paper.${PRINTER} | |
20 | lpr -P${PRINTER} paper.${PRINTER} | |
21 | .endif | |
22 | ||
23 | clean cleandir: | |
24 | rm -f paper.* [eE]rrs mklog ${CLEANFILES} | |
25 | rm -rf obj | |
26 | ||
27 | FILES?= ${SRCS} | |
28 | install: | |
29 | install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ | |
30 | Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR} | |
31 | ||
32 | spell: ${SRCS} | |
33 | spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell | |
34 | ||
35 | BINDIR?= /usr/share/doc | |
36 | BINGRP?= bin | |
37 | BINOWN?= bin | |
38 | BINMODE?= 444 |