]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
*.mk: dist, dist-lz: Create tarballs compressed with lzip(1)
authorAlejandro Colomar <alx@kernel.org>
Wed, 12 Apr 2023 12:37:08 +0000 (14:37 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 12 Apr 2023 12:52:05 +0000 (14:52 +0200)
Suggested-by: Ralph Corderoy <ralph@inputplus.co.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Makefile
lib/cmd.mk
lib/dist.mk

index 037d879dc5f25faa841052aa93c6417f0c5ba55b..6931d7bce7257c0c85d4b22b7aaf7d51729ad200 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,7 @@ help:
        $(info  dist-tar                Create a tarball of the repository)
        $(info  dist-bz2                Create a compressed tarball (.tar.bz2))
        $(info  dist-gz                 Create a compressed tarball (.tar.gz))
+       $(info  dist-lz                 Create a compressed tarball (.tar.lz))
        $(info  dist-xz                 Create a compressed tarball (.tar.xz))
        $(info  )
        $(info  help                    Print this help)
index 7af9d112b065540789f5115043265169b0eecb0c..92b469fc3756575b0d133c1d208052bd345c0759 100644 (file)
@@ -20,6 +20,7 @@ HEAD       := head
 INSTALL    := install
 LN         := ln
 LOCALE     := locale
+LZIP       := lzip
 PKGCONF    := pkgconf
 SED        := sed
 SORT       := sort
index de1042bc1ae241227d50ee51b14e62b7cb82c0c0..d3c04d147f35492c79c4679bdb42ee77b5c3e842 100644 (file)
@@ -31,7 +31,7 @@ _DISTPAGES  := $(filter     $(_DISTDIR)/man%,$(_DISTFILES))
 _DISTOTHERS := $(filter-out $(_DISTDIR)/man%,$(_DISTFILES))
 
 DISTFILE    := $(builddir)/$(DISTNAME).tar
-compression := bz2 gz xz
+compression := bz2 gz lz xz
 dist        := $(foreach x,$(compression),dist-$(x))
 
 
@@ -63,6 +63,11 @@ $(DISTFILE).gz: %.gz: % | $$(@D)/
        $(info GZIP     $@)
        $(GZIP) -knf $<
 
+$(DISTFILE).lz: %.lz: % | $$(@D)/
+       $(info LZIP     $@)
+       $(LZIP) -kf $<
+       touch $@
+
 $(DISTFILE).xz: %.xz: % | $$(@D)/
        $(info XZ       $@)
        $(XZ) -kf $<