bsd.doc.mk revision 1.2 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 .if !target(obj)
24 obj:
25 .endif
26
27 clean cleandir:
28 rm -f paper.* [eE]rrs mklog ${CLEANFILES}
29
30 FILES?= ${SRCS}
31 install:
32 install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
33 Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
34
35 spell: ${SRCS}
36 spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
37
38 BINDIR?= /usr/share/doc
39 BINGRP?= bin
40 BINOWN?= bin
41 BINMODE?= 444
42