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