Suggested-by: Ralph Corderoy <ralph@inputplus.co.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
$(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)
INSTALL := install
LN := ln
LOCALE := locale
+LZIP := lzip
PKGCONF := pkgconf
SED := sed
SORT := sort
_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))
$(info GZIP $@)
$(GZIP) -knf $<
+$(DISTFILE).lz: %.lz: % | $$(@D)/
+ $(info LZIP $@)
+ $(LZIP) -kf $<
+ touch $@
+
$(DISTFILE).xz: %.xz: % | $$(@D)/
$(info XZ $@)
$(XZ) -kf $<