]> git.ipfire.org Git - thirdparty/man-pages.git/commit
INSTALL, cmd.mk, install-man.mk: Support installing compressed pages
authorAlejandro Colomar <alx@kernel.org>
Wed, 8 Mar 2023 22:41:11 +0000 (23:41 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 8 Mar 2023 23:05:40 +0000 (00:05 +0100)
commit1a35f5b7d4f866e0b711a98a0afa9bb275b04675
treeb4512a0c25601c9315b60c9cbb16cc3df3635d6d
parent335acbfbbd151b824e53d94c5aec85d2ee5a051a
INSTALL, cmd.mk, install-man.mk: Support installing compressed pages

Distributions usually install compressed (.gz) pages to reduce space.
Let's support this in our build system, as a command-line variable "Z",
which is empty by default, but can be set to a file extension to append
to the page names (and the appropriate compression program will be
used).  For now, the only compression supported is ".gz".

Example:

    $ make install Z=.gz

This can be combined with LINK_PAGES, to produce compressed pages and
use symbolic links for the link pages:

    $ make install Z=.gz LINK_PAGES=symlink

Signed-off-by: Alejandro Colomar <alx@kernel.org>
INSTALL
lib/cmd.mk
lib/install-man.mk