From 0df7827e837b227bcfd2a1459804a755d110fd08 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 2 Jan 2015 14:05:30 +0000 Subject: [PATCH] Use mandoc to generate cat pages --- share/mk/bsd.man.mk | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 4a34dc3890a5..416993ee3fa4 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -38,7 +38,7 @@ # MANBUILDCAT create preformatted manual pages in addition to normal # pages. [not set] # -# MROFF_CMD command and flags to create preformatted pages +# MANDOC_CMD command and flags to create preformatted pages # # +++ targets +++ # @@ -54,8 +54,7 @@ MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} CATDIR= ${MANDIR:H:S/$/\/cat/} CATEXT= .cat -MROFF_CMD?= groff -Tascii -mtty-char -man -t -MANDOC_CMD?= mandoc +MANDOC_CMD?= mandoc -Tascii MCOMPRESS_CMD?= ${COMPRESS_CMD} MCOMPRESS_EXT?= ${COMPRESS_EXT} @@ -101,7 +100,7 @@ ${__target}: ${__page} .for __target in ${__page:T:S/$/${CATEXT}${FILTEXTENSION}/g} _manpages: ${__target} ${__target}: ${__page} - ${MANFILTER} < ${.ALLSRC} | ${MROFF_CMD} > ${.TARGET} + ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} > ${.TARGET} .endfor .endif .endfor @@ -114,7 +113,7 @@ CLEANFILES+= ${MAN:T:S/$/${CATEXT}/g} .for __target in ${__page:T:S/$/${CATEXT}/g} _manpages: ${__target} ${__target}: ${__page} - ${MROFF_CMD} ${.ALLSRC} > ${.TARGET} + ${MANDOC_CMD} ${.ALLSRC} > ${.TARGET} .endfor .endfor .else @@ -145,9 +144,9 @@ ${__target}: ${__page} _manpages: ${__target} ${__target}: ${__page} .if defined(MANFILTER) - ${MANFILTER} < ${.ALLSRC} | ${MROFF_CMD} | ${MCOMPRESS_CMD} > ${.TARGET} + ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} | ${MCOMPRESS_CMD} > ${.TARGET} .else - ${MROFF_CMD} ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET} + ${MANDOC_CMD} ${.ALLSRC} | ${MCOMPRESS_CMD} > ${.TARGET} .endif .endfor .endif