bsd.doc.mk revision 1.4 1 # @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
2
3 PRINTER=ps
4
5 # Why d'command'?
6 #EQN?= deqn -P${PRINTER}
7 #TBL?= dtbl -P${PRINTER}
8 #ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
9
10 BIB?= bib
11 EQN?= eqn -P${PRINTER}
12 GREMLIN?= grn -P${PRINTER}
13 GRIND?= vgrind -f
14 INDXBIB?= indxbib
15 PIC?= pic -P${PRINTER}
16 REFER?= refer
17 ROFF?= ntroff -t ${MACROS} ${PAGES} -P${PRINTER}
18 SOELIM?= soelim
19 TBL?= tbl -P${PRINTER}
20
21 .PATH: ${.CURDIR}
22
23 .if !target(print)
24 print: paper.${PRINTER}
25 lpr -P${PRINTER} paper.${PRINTER}
26 .endif
27
28 .if !target(obj)
29 obj:
30 .endif
31
32 clean cleandir:
33 rm -f paper.* [eE]rrs mklog ${CLEANFILES}
34
35 FILES?= ${SRCS}
36 install:
37 @if [ ! -d "${DESTDIR}${BINDIR}/${DIR}" ]; then \
38 /bin/rm -f ${DESTDIR}${BINDIR}/${DIR} ; \
39 mkdir -p ${DESTDIR}${BINDIR}/${DIR} ; \
40 chown root.wheel ${DESTDIR}${BINDIR}/${DIR} ; \
41 chmod 755 ${DESTDIR}${BINDIR}/${DIR} ; \
42 else \
43 true ; \
44 fi
45 install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
46 Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
47
48 spell: ${SRCS}
49 spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
50
51 BINDIR?= /usr/share/doc
52 BINGRP?= bin
53 BINOWN?= bin
54 BINMODE?= 444
55