Makefile: Add support for compressing manual pages with 'xz'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Christoph Thompson 2015-05-11 12:23:56 +02:00 committed by Michael Kerrisk
parent 0b4ac98897
commit 7e8f0b728c
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ MANDIR=$(prefix)/share/man
GZIP=gzip -9
BZIP2=bzip2 -9
LZMA=xz -9
all: screen remove install
@ -16,6 +17,8 @@ allgz: gz all
allbz: bz2 all
allxz: xz all
screen:
mkdir -p not_installed
for i in man?/*; do \
@ -36,6 +39,9 @@ gz:
bz2:
for i in man?; do $(BZIP2) "$$i"/*; done
xz:
for i in man?; do $(LZMA) "$$i"/*; done
# Use with
# make HTDIR=/some/dir HTOPTS=whatever html
# The sed removes the lines "Content-type: text/html\n\n"