2c2
< # $FreeBSD: head/share/mk/bsd.doc.mk 106143 2002-10-29 14:56:09Z ru $
---
> # $FreeBSD: head/share/mk/bsd.doc.mk 106151 2002-10-29 16:13:21Z ru $
22d21
< EQN?= eqn -T${PRINTERDEVICE}
28,32c27,32
< .if ${PRINTERDEVICE} == "ascii"
< ROFF?= groff -mtty-char ${TRFLAGS} ${MACROS} -o${PAGES}
< .else
< ROFF?= groff ${TRFLAGS} ${MACROS} -o${PAGES}
< .endif
---
> .for _dev in ${PRINTERDEVICE:Mascii}
> ROFF.ascii?= groff -Tascii ${TRFLAGS} -mtty-char ${MACROS} -o${PAGES}
> .endfor
> .for _dev in ${PRINTERDEVICE:Nascii}
> ROFF.${_dev}?= groff -T${_dev} ${TRFLAGS} ${MACROS} -o${PAGES}
> .endfor
39d38
< TRFLAGS+= -T${PRINTERDEVICE}
57,60d55
< .if defined(NODOCCOMPRESS) || ${PRINTERDEVICE} == "html"
< DFILE= ${DOC}.${PRINTERDEVICE}
< .else
< DFILE= ${DOC}.${PRINTERDEVICE}${DCOMPRESS_EXT}
61a57,64
> .for _dev in ${PRINTERDEVICE:Mhtml}
> DFILE.html= ${DOC}.html
> .endfor
> .for _dev in ${PRINTERDEVICE:Nhtml}
> .if defined(NODOCCOMPRESS)
> DFILE.${_dev}= ${DOC}.${_dev}
> .else
> DFILE.${_dev}= ${DOC}.${_dev}${DCOMPRESS_EXT}
62a66
> .endfor
79c83,85
< all: ${DFILE}
---
> .for _dev in ${PRINTERDEVICE}
> all: ${DFILE.${_dev}}
> .endfor
82c88,92
< print: ${DFILE}
---
> .for _dev in ${PRINTERDEVICE}
> print: ${DFILE.${_dev}}
> .endfor
> print:
> .for _dev in ${PRINTERDEVICE}
84c94
< ${LPR} ${DFILE}
---
> ${LPR} ${DFILE.${_dev}}
86c96
< ${DCOMPRESS_CMD} -d ${DFILE} | ${LPR}
---
> ${DCOMPRESS_CMD} -d ${DFILE.${_dev}} | ${LPR}
87a98
> .endfor
90,92c101,103
< .if ${PRINTERDEVICE} != "ascii" && ${PRINTERDEVICE} != "ps"
< CLEANFILES+= ${DOC}.${PRINTERDEVICE} ${DOC}.${PRINTERDEVICE}${DCOMPRESS_EXT}
< .endif
---
> .for _dev in ${PRINTERDEVICE:Nascii:Nps:Nhtml}
> CLEANFILES+= ${DOC}.${_dev} ${DOC}.${_dev}${DCOMPRESS_EXT}
> .endfor
98c109
< .if ${PRINTERDEVICE} == "html"
---
> .for _dev in ${PRINTERDEVICE:Mhtml}
102c113,114
< .else
---
> .endfor
> .for _dev in ${PRINTERDEVICE:Nhtml}
104,105c116,117
< ${DFILE} ${DESTDIR}${BINDIR}/${VOLUME}
< .endif
---
> ${DFILE.${_dev}} ${DESTDIR}${BINDIR}/${VOLUME}
> .endfor
116d127
< .if !target(${DFILE})
119a131,132
> .endif
>
121c134,137
< ${DFILE}: _stamp.extra
---
> .for _dev in ${PRINTERDEVICE:Nhtml}
> .if !target(${DFILE.${_dev}})
> .if target(_stamp.extra)
> ${DFILE.${_dev}}: _stamp.extra
123,127c139,140
< ${DFILE}: ${SRCS}
< .if ${PRINTERDEVICE} == "html"
< cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \
< document=${DOC} ${SRCS}
< .elif defined(NODOCCOMPRESS)
---
> ${DFILE.${_dev}}: ${SRCS}
> .if defined(NODOCCOMPRESS)
129c142
< (cd ${CD_HACK}; ${ROFF} ${.ALLSRC:N_stamp.extra}) > ${.TARGET}
---
> (cd ${CD_HACK}; ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra}) > ${.TARGET}
131c144
< ${ROFF} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
---
> ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
135c148
< (cd ${CD_HACK}; ${ROFF} ${.ALLSRC:N_stamp.extra}) | \
---
> (cd ${CD_HACK}; ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra}) | \
138c151
< ${ROFF} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}
---
> ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}
141a155
> .endfor
142a157,173
> .for _dev in ${PRINTERDEVICE:Mhtml}
> .if !target(${DFILE.html})
> .if target(_stamp.extra)
> ${DFILE.html}: _stamp.extra
> .endif
> ${DFILE.html}: ${SRCS}
> .if defined(MACROS) && !empty(MACROS)
> cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \
> document=${DOC} ${SRCS}
> .else # unroff(1) requires a macro package as an argument
> cd ${SRCDIR}; ${UNROFF} -ms ${UNROFFFLAGS} \
> document=${DOC} ${SRCS}
> .else
> .endif
> .endif
> .endfor
>
< # $FreeBSD: head/share/mk/bsd.doc.mk 106143 2002-10-29 14:56:09Z ru $
---
> # $FreeBSD: head/share/mk/bsd.doc.mk 106151 2002-10-29 16:13:21Z ru $
22d21
< EQN?= eqn -T${PRINTERDEVICE}
28,32c27,32
< .if ${PRINTERDEVICE} == "ascii"
< ROFF?= groff -mtty-char ${TRFLAGS} ${MACROS} -o${PAGES}
< .else
< ROFF?= groff ${TRFLAGS} ${MACROS} -o${PAGES}
< .endif
---
> .for _dev in ${PRINTERDEVICE:Mascii}
> ROFF.ascii?= groff -Tascii ${TRFLAGS} -mtty-char ${MACROS} -o${PAGES}
> .endfor
> .for _dev in ${PRINTERDEVICE:Nascii}
> ROFF.${_dev}?= groff -T${_dev} ${TRFLAGS} ${MACROS} -o${PAGES}
> .endfor
39d38
< TRFLAGS+= -T${PRINTERDEVICE}
57,60d55
< .if defined(NODOCCOMPRESS) || ${PRINTERDEVICE} == "html"
< DFILE= ${DOC}.${PRINTERDEVICE}
< .else
< DFILE= ${DOC}.${PRINTERDEVICE}${DCOMPRESS_EXT}
61a57,64
> .for _dev in ${PRINTERDEVICE:Mhtml}
> DFILE.html= ${DOC}.html
> .endfor
> .for _dev in ${PRINTERDEVICE:Nhtml}
> .if defined(NODOCCOMPRESS)
> DFILE.${_dev}= ${DOC}.${_dev}
> .else
> DFILE.${_dev}= ${DOC}.${_dev}${DCOMPRESS_EXT}
62a66
> .endfor
79c83,85
< all: ${DFILE}
---
> .for _dev in ${PRINTERDEVICE}
> all: ${DFILE.${_dev}}
> .endfor
82c88,92
< print: ${DFILE}
---
> .for _dev in ${PRINTERDEVICE}
> print: ${DFILE.${_dev}}
> .endfor
> print:
> .for _dev in ${PRINTERDEVICE}
84c94
< ${LPR} ${DFILE}
---
> ${LPR} ${DFILE.${_dev}}
86c96
< ${DCOMPRESS_CMD} -d ${DFILE} | ${LPR}
---
> ${DCOMPRESS_CMD} -d ${DFILE.${_dev}} | ${LPR}
87a98
> .endfor
90,92c101,103
< .if ${PRINTERDEVICE} != "ascii" && ${PRINTERDEVICE} != "ps"
< CLEANFILES+= ${DOC}.${PRINTERDEVICE} ${DOC}.${PRINTERDEVICE}${DCOMPRESS_EXT}
< .endif
---
> .for _dev in ${PRINTERDEVICE:Nascii:Nps:Nhtml}
> CLEANFILES+= ${DOC}.${_dev} ${DOC}.${_dev}${DCOMPRESS_EXT}
> .endfor
98c109
< .if ${PRINTERDEVICE} == "html"
---
> .for _dev in ${PRINTERDEVICE:Mhtml}
102c113,114
< .else
---
> .endfor
> .for _dev in ${PRINTERDEVICE:Nhtml}
104,105c116,117
< ${DFILE} ${DESTDIR}${BINDIR}/${VOLUME}
< .endif
---
> ${DFILE.${_dev}} ${DESTDIR}${BINDIR}/${VOLUME}
> .endfor
116d127
< .if !target(${DFILE})
119a131,132
> .endif
>
121c134,137
< ${DFILE}: _stamp.extra
---
> .for _dev in ${PRINTERDEVICE:Nhtml}
> .if !target(${DFILE.${_dev}})
> .if target(_stamp.extra)
> ${DFILE.${_dev}}: _stamp.extra
123,127c139,140
< ${DFILE}: ${SRCS}
< .if ${PRINTERDEVICE} == "html"
< cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \
< document=${DOC} ${SRCS}
< .elif defined(NODOCCOMPRESS)
---
> ${DFILE.${_dev}}: ${SRCS}
> .if defined(NODOCCOMPRESS)
129c142
< (cd ${CD_HACK}; ${ROFF} ${.ALLSRC:N_stamp.extra}) > ${.TARGET}
---
> (cd ${CD_HACK}; ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra}) > ${.TARGET}
131c144
< ${ROFF} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
---
> ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
135c148
< (cd ${CD_HACK}; ${ROFF} ${.ALLSRC:N_stamp.extra}) | \
---
> (cd ${CD_HACK}; ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra}) | \
138c151
< ${ROFF} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}
---
> ${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}
141a155
> .endfor
142a157,173
> .for _dev in ${PRINTERDEVICE:Mhtml}
> .if !target(${DFILE.html})
> .if target(_stamp.extra)
> ${DFILE.html}: _stamp.extra
> .endif
> ${DFILE.html}: ${SRCS}
> .if defined(MACROS) && !empty(MACROS)
> cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \
> document=${DOC} ${SRCS}
> .else # unroff(1) requires a macro package as an argument
> cd ${SRCDIR}; ${UNROFF} -ms ${UNROFFFLAGS} \
> document=${DOC} ${SRCS}
> .else
> .endif
> .endif
> .endfor
>