Move DOCCOMPRESS to MK variable.

This commit is contained in:
Warner Losh 2014-05-10 16:38:54 +00:00
parent 93654dca21
commit 7ecf742eeb
4 changed files with 14 additions and 4 deletions

View File

@ -19,7 +19,7 @@
#
# MACROS Macro packages used to build the document. [not set]
#
# NO_DOCCOMPRESS If you do not want formatted troff documents to be
# WITHOUT_DOCCOMPRESS If you do not want formatted troff documents to be
# compressed when they are installed. [not set]
#
# PRINTERDEVICE Indicates which output formats will be generated
@ -87,7 +87,7 @@ DCOMPRESS_CMD?= ${COMPRESS_CMD}
DFILE.html= ${DOC}.html
.endfor
.for _dev in ${PRINTERDEVICE:Nhtml}
.if defined(NO_DOCCOMPRESS)
.if ${MK_DOCCOMPRESS} == "no"
DFILE.${_dev}= ${DOC}.${_dev}
.else
DFILE.${_dev}= ${DOC}.${_dev}${DCOMPRESS_EXT}
@ -117,7 +117,7 @@ print: ${DFILE.${_dev}}
.endfor
print:
.for _dev in ${PRINTERDEVICE}
.if defined(NO_DOCCOMPRESS)
.if ${MK_DOCCOMPRESS} == "no"
${LPR} ${DFILE.${_dev}}
.else
${DCOMPRESS_CMD} -d ${DFILE.${_dev}} | ${LPR}
@ -164,7 +164,7 @@ CLEANFILES+= _stamp.extra
${DFILE.${_dev}}: _stamp.extra
.endif
${DFILE.${_dev}}: ${SRCS}
.if defined(NO_DOCCOMPRESS)
.if ${MK_DOCCOMPRESS} == "no"
${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} > ${.TARGET}
.else
${ROFF.${_dev}} ${.ALLSRC:N_stamp.extra} | ${DCOMPRESS_CMD} > ${.TARGET}

View File

@ -45,6 +45,7 @@ __<bsd.opts.mk>__:
__DEFAULT_YES_OPTIONS = \
ASSERT_DEBUG \
DOCCOMPRESS \
INFO \
INSTALLLIB \
KERBEROS \

View File

@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not to install compressed system documentation.
Only the uncompressed version will be installed.

View File

@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to not to install compressed man pages.
Only the uncompressed versions will be installed.