Move DOCCOMPRESS to MK variable.
This commit is contained in:
parent
93654dca21
commit
7ecf742eeb
@ -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}
|
||||
|
@ -45,6 +45,7 @@ __<bsd.opts.mk>__:
|
||||
|
||||
__DEFAULT_YES_OPTIONS = \
|
||||
ASSERT_DEBUG \
|
||||
DOCCOMPRESS \
|
||||
INFO \
|
||||
INSTALLLIB \
|
||||
KERBEROS \
|
||||
|
4
tools/build/options/WITHOUT_DOCCOMPRESS
Normal file
4
tools/build/options/WITHOUT_DOCCOMPRESS
Normal file
@ -0,0 +1,4 @@
|
||||
.\" $FreeBSD$
|
||||
Set to not to install compressed system documentation.
|
||||
Only the uncompressed version will be installed.
|
||||
|
5
tools/build/options/WITHOUT_MANCOMPRESS
Normal file
5
tools/build/options/WITHOUT_MANCOMPRESS
Normal file
@ -0,0 +1,5 @@
|
||||
.\" $FreeBSD$
|
||||
Set to not to install compressed man pages.
|
||||
Only the uncompressed versions will be installed.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user