From 7ecf742eebab46b6c2b6c7037e204a2447609a82 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 10 May 2014 16:38:54 +0000 Subject: [PATCH] Move DOCCOMPRESS to MK variable. --- share/mk/bsd.doc.mk | 8 ++++---- share/mk/bsd.opts.mk | 1 + tools/build/options/WITHOUT_DOCCOMPRESS | 4 ++++ tools/build/options/WITHOUT_MANCOMPRESS | 5 +++++ 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 tools/build/options/WITHOUT_DOCCOMPRESS create mode 100644 tools/build/options/WITHOUT_MANCOMPRESS diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 49b2d9b85fa8..836ace9568c8 100644 --- a/share/mk/bsd.doc.mk +++ b/share/mk/bsd.doc.mk @@ -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} diff --git a/share/mk/bsd.opts.mk b/share/mk/bsd.opts.mk index 885d9224c249..327b9970c41d 100644 --- a/share/mk/bsd.opts.mk +++ b/share/mk/bsd.opts.mk @@ -45,6 +45,7 @@ ____: __DEFAULT_YES_OPTIONS = \ ASSERT_DEBUG \ + DOCCOMPRESS \ INFO \ INSTALLLIB \ KERBEROS \ diff --git a/tools/build/options/WITHOUT_DOCCOMPRESS b/tools/build/options/WITHOUT_DOCCOMPRESS new file mode 100644 index 000000000000..7580202cd236 --- /dev/null +++ b/tools/build/options/WITHOUT_DOCCOMPRESS @@ -0,0 +1,4 @@ +.\" $FreeBSD$ +Set to not to install compressed system documentation. +Only the uncompressed version will be installed. + diff --git a/tools/build/options/WITHOUT_MANCOMPRESS b/tools/build/options/WITHOUT_MANCOMPRESS new file mode 100644 index 000000000000..d270d1d703c1 --- /dev/null +++ b/tools/build/options/WITHOUT_MANCOMPRESS @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to not to install compressed man pages. +Only the uncompressed versions will be installed. + +