From 7e8f0b728c953017605e2612096290bc03f8bfee Mon Sep 17 00:00:00 2001 From: Christoph Thompson Date: Mon, 11 May 2015 12:23:56 +0200 Subject: [PATCH] Makefile: Add support for compressing manual pages with 'xz' Signed-off-by: Michael Kerrisk --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2f9ba8f03..50a457956 100644 --- a/Makefile +++ b/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"