mirror of https://github.com/mkerrisk/man-pages
Makefile: Add support for compressing manual pages with 'xz'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0b4ac98897
commit
7e8f0b728c
6
Makefile
6
Makefile
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue