Lines Matching +full:ascii +full:. +full:d
1 # The include file <bsd.doc.mk> handles installing BSD troff documents.
6 # DCOMPRESS_CMD Program to compress troff documents. Output is to stdout.
9 # DESTDIR Change the tree where the documents get installed. [not set]
11 # DOC Document name. [paper]
13 # EXTRA Extra files (not SRCS) that make up the document. [not set]
15 # LPR Printer command. [lpr]
17 # MACROS Macro packages used to build the document. [not set]
20 # compressed when they are installed. [not set]
23 # (ascii, ps, html). [ascii]
25 # SRCDIR Directory where source files live. [${.CURDIR}]
27 # SRCS List of source files. [not set]
29 # TRFLAGS Additional flags to groff(1). [not set]
31 # USE_EQN If set, preprocess with eqn(1). [not set]
33 # USE_PIC If set, preprocess with pic(1). [not set]
35 # USE_REFER If set, preprocess with refer(1). [not set]
37 # USE_SOELIM If set, preprocess with soelim(1). [not set]
39 # USE_TBL If set, preprocess with tbl(1). [not set]
41 # VOLUME Volume the document belongs to. [not set]
43 .include <bsd.init.mk>
45 PRINTERDEVICE?= ascii
53 .for _dev in ${PRINTERDEVICE:Mascii}
54 ROFF.ascii?= groff -Tascii -P-c ${TRFLAGS} -mtty-char ${MACROS} ${PAGES:C/^/-o/1}
55 .endfor
56 .for _dev in ${PRINTERDEVICE:Nascii}
57 ROFF.${_dev}?= groff -T${_dev} ${TRFLAGS} ${MACROS} ${PAGES:C/^/-o/1}
58 .endfor
65 .if defined(USE_EQN)
67 .endif
68 .if defined(USE_PIC)
70 .endif
71 .if defined(USE_REFER)
73 .endif
74 .if defined(USE_SOELIM)
75 TRFLAGS+= -I${.CURDIR}
76 .endif
77 .if defined(USE_TBL)
79 .endif
81 .if defined(NO_ROOT)
82 .if !defined(TAGS) || ! ${TAGS:Mpackage=*}
84 .endif
86 .endif
90 .for _dev in ${PRINTERDEVICE:Mhtml}
91 DFILE.html= ${DOC}.html
92 .endfor
93 .for _dev in ${PRINTERDEVICE:Nhtml}
94 .if ${MK_DOCCOMPRESS} == "no"
95 DFILE.${_dev}= ${DOC}.${_dev}
96 .else
97 DFILE.${_dev}= ${DOC}.${_dev}${DCOMPRESS_EXT}
98 .endif
99 .endfor
104 .if ${HTML_SPLIT} == "yes"
106 .endif
108 # Compatibility mode flag for groff. Use this when formatting documents with
109 # Berkeley me macros (orig_me(7)).
112 .PATH: ${.CURDIR} ${SRCDIR}
114 .if !defined(_SKIP_BUILD)
115 .for _dev in ${PRINTERDEVICE}
116 all: ${DFILE.${_dev}}
117 .endfor
118 .endif
120 .if !target(print)
121 .for _dev in ${PRINTERDEVICE}
122 print: ${DFILE.${_dev}}
123 .endfor
125 .for _dev in ${PRINTERDEVICE}
126 .if ${MK_DOCCOMPRESS} == "no"
127 ${LPR} ${DFILE.${_dev}}
128 .else
129 ${DCOMPRESS_CMD} -d ${DFILE.${_dev}} | ${LPR}
130 .endif
131 .endfor
132 .endif
134 .for _dev in ${PRINTERDEVICE:Nascii:Nps:Nhtml}
135 CLEANFILES+= ${DOC}.${_dev} ${DOC}.${_dev}${DCOMPRESS_EXT}
136 .endfor
137 CLEANFILES+= ${DOC}.ascii ${DOC}.ascii${DCOMPRESS_EXT} \
138 ${DOC}.ps ${DOC}.ps${DCOMPRESS_EXT} \
139 ${DOC}.html ${DOC}-*.html
142 .if ${PRINTERDEVICE:Mhtml}
144 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},docs} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
145 ${DOC}*.html ${DESTDIR}${BINDIR}/${VOLUME}/
146 .endif
147 .for _dev in ${PRINTERDEVICE:Nhtml}
148 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},docs} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
149 ${DFILE.${_dev}} ${DESTDIR}${BINDIR}/${VOLUME}/
150 .endfor
153 (cd ${.CURDIR}; spell ${SRCS} ) | sort | \
154 comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
159 SRCDIR?= ${.CURDIR}
161 .if defined(EXTRA) && !empty(EXTRA)
162 _stamp.extra: ${EXTRA}
163 touch ${.TARGET}
164 .endif
166 CLEANFILES+= _stamp.extra
167 .for _dev in ${PRINTERDEVICE:Nhtml}
168 .if !target(${DFILE.${_dev}})
169 .if target(_stamp.extra)
170 ${DFILE.${_dev}}: _stamp.extra
171 .endif
172 ${DFILE.${_dev}}: ${SRCS}
173 .if ${MK_DOCCOMPRESS} == "no"
174 ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
175 .else
176 ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}
177 .endif
178 .endif
179 .endfor
181 .for _dev in ${PRINTERDEVICE:Mhtml}
182 .if !target(${DFILE.html})
183 .if target(_stamp.extra)
184 ${DFILE.html}: _stamp.extra
185 .endif
186 ${DFILE.html}: ${SRCS}
187 .if defined(MACROS) && !empty(MACROS)
190 .else # unroff(1) requires a macro package as an argument
193 .endif
194 .endif
195 .endfor
199 .include <bsd.obj.mk>