Use mandoc to generate cat pages
This commit is contained in:
parent
2f335df9c2
commit
0df7827e83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276536
@ -38,7 +38,7 @@
|
|||||||
# MANBUILDCAT create preformatted manual pages in addition to normal
|
# MANBUILDCAT create preformatted manual pages in addition to normal
|
||||||
# pages. [not set]
|
# pages. [not set]
|
||||||
#
|
#
|
||||||
# MROFF_CMD command and flags to create preformatted pages
|
# MANDOC_CMD command and flags to create preformatted pages
|
||||||
#
|
#
|
||||||
# +++ targets +++
|
# +++ targets +++
|
||||||
#
|
#
|
||||||
@ -54,8 +54,7 @@ MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
|||||||
|
|
||||||
CATDIR= ${MANDIR:H:S/$/\/cat/}
|
CATDIR= ${MANDIR:H:S/$/\/cat/}
|
||||||
CATEXT= .cat
|
CATEXT= .cat
|
||||||
MROFF_CMD?= groff -Tascii -mtty-char -man -t
|
MANDOC_CMD?= mandoc -Tascii
|
||||||
MANDOC_CMD?= mandoc
|
|
||||||
|
|
||||||
MCOMPRESS_CMD?= ${COMPRESS_CMD}
|
MCOMPRESS_CMD?= ${COMPRESS_CMD}
|
||||||
MCOMPRESS_EXT?= ${COMPRESS_EXT}
|
MCOMPRESS_EXT?= ${COMPRESS_EXT}
|
||||||
@ -101,7 +100,7 @@ ${__target}: ${__page}
|
|||||||
.for __target in ${__page:T:S/$/${CATEXT}${FILTEXTENSION}/g}
|
.for __target in ${__page:T:S/$/${CATEXT}${FILTEXTENSION}/g}
|
||||||
_manpages: ${__target}
|
_manpages: ${__target}
|
||||||
${__target}: ${__page}
|
${__target}: ${__page}
|
||||||
${MANFILTER} < ${.ALLSRC} | ${MROFF_CMD} > ${.TARGET}
|
${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} > ${.TARGET}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
@ -114,7 +113,7 @@ CLEANFILES+= ${MAN:T:S/$/${CATEXT}/g}
|
|||||||
.for __target in ${__page:T:S/$/${CATEXT}/g}
|
.for __target in ${__page:T:S/$/${CATEXT}/g}
|
||||||
_manpages: ${__target}
|
_manpages: ${__target}
|
||||||
${__target}: ${__page}
|
${__target}: ${__page}
|
||||||
${MROFF_CMD} ${.ALLSRC} > ${.TARGET}
|
${MANDOC_CMD} ${.ALLSRC} > ${.TARGET}
|
||||||
.endfor
|
.endfor
|
||||||
.endfor
|
.endfor
|
||||||
.else
|
.else
|
||||||
@ -145,9 +144,9 @@ ${__target}: ${__page}
|
|||||||
_manpages: ${__target}
|
_manpages: ${__target}
|
||||||
${__target}: ${__page}
|
${__target}: ${__page}
|
||||||
.if defined(MANFILTER)
|
.if defined(MANFILTER)
|
||||||
${MANFILTER} < ${.ALLSRC} | ${MROFF_CMD} | ${MCOMPRESS_CMD} > ${.TARGET}
|
${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} | ${MCOMPRESS_CMD} > ${.TARGET}
|
||||||
.else
|
.else
|
||||||
${MROFF_CMD} ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET}
|
${MANDOC_CMD} ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET}
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user