From 69ad95988f40648ea21d96f248ea54ab7ca082fa Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 12 Apr 2023 14:37:08 +0200 Subject: [PATCH] *.mk: dist, dist-lz: Create tarballs compressed with lzip(1) Suggested-by: Ralph Corderoy Signed-off-by: Alejandro Colomar --- Makefile | 1 + lib/cmd.mk | 1 + lib/dist.mk | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 037d879dc5..6931d7bce7 100644 --- 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) diff --git a/lib/cmd.mk b/lib/cmd.mk index 7af9d112b0..92b469fc37 100644 --- a/lib/cmd.mk +++ b/lib/cmd.mk @@ -20,6 +20,7 @@ HEAD := head INSTALL := install LN := ln LOCALE := locale +LZIP := lzip PKGCONF := pkgconf SED := sed SORT := sort diff --git a/lib/dist.mk b/lib/dist.mk index de1042bc1a..d3c04d147f 100644 --- a/lib/dist.mk +++ b/lib/dist.mk @@ -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 $< -- 2.47.2