bsd.man.mk (6cec9cad762b6476313fb1f8e931a1647822db6b) | bsd.man.mk (2f335df9c2ccb40eceda9967617f3355f7537fcc) |
---|---|
1# $FreeBSD$ 2# 3# The include file <bsd.man.mk> handles installing manual pages and 4# their links. 5# 6# 7# +++ variables +++ 8# --- 41 unchanged lines hidden (view full) --- 50.error bsd.man.mk cannot be included directly. 51.endif 52 53MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} 54 55CATDIR= ${MANDIR:H:S/$/\/cat/} 56CATEXT= .cat 57MROFF_CMD?= groff -Tascii -mtty-char -man -t | 1# $FreeBSD$ 2# 3# The include file <bsd.man.mk> handles installing manual pages and 4# their links. 5# 6# 7# +++ variables +++ 8# --- 41 unchanged lines hidden (view full) --- 50.error bsd.man.mk cannot be included directly. 51.endif 52 53MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} 54 55CATDIR= ${MANDIR:H:S/$/\/cat/} 56CATEXT= .cat 57MROFF_CMD?= groff -Tascii -mtty-char -man -t |
58MANDOC_CMD?= mandoc |
|
58 59MCOMPRESS_CMD?= ${COMPRESS_CMD} 60MCOMPRESS_EXT?= ${COMPRESS_EXT} 61 62SECTIONS= 1 2 3 4 5 6 7 8 9 63.SUFFIXES: ${SECTIONS:S/^/./g} 64 65# Backwards compatibility. --- 168 unchanged lines hidden (view full) --- 234.endif 235 236manlint: 237.if defined(MAN) && !empty(MAN) 238.for __page in ${MAN} 239manlint: ${__page}lint 240${__page}lint: ${__page} 241.if defined(MANFILTER) | 59 60MCOMPRESS_CMD?= ${COMPRESS_CMD} 61MCOMPRESS_EXT?= ${COMPRESS_EXT} 62 63SECTIONS= 1 2 3 4 5 6 7 8 9 64.SUFFIXES: ${SECTIONS:S/^/./g} 65 66# Backwards compatibility. --- 168 unchanged lines hidden (view full) --- 235.endif 236 237manlint: 238.if defined(MAN) && !empty(MAN) 239.for __page in ${MAN} 240manlint: ${__page}lint 241${__page}lint: ${__page} 242.if defined(MANFILTER) |
242 ${MANFILTER} < ${.ALLSRC} | ${MROFF_CMD} -ww -z | 243 ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} -Tlint |
243.else | 244.else |
244 ${MROFF_CMD} -ww -z ${.ALLSRC} | 245 ${MANDOC_CMD} -Tlint ${.ALLSRC} |
245.endif 246.endfor 247.endif | 246.endif 247.endfor 248.endif |