From c7e130dcfaf7f01d66606f891c685ad16ee73c8a Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Wed, 24 May 2023 19:56:57 +0300 Subject: [PATCH] Added support for custom command for tarball compression --- Makefile.am | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile.am b/Makefile.am index c5a218a1..635e02c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,3 +59,23 @@ dist-hook: else \ true; \ fi + +dist-custm: distdir + @test -n "$(ARC_CMD)" || \ + { echo 'The valid archive command must be defined by "ARC_CMD".' >&2; false; } + @test -n "$(ARC_EXT)" || \ + { echo 'The archive file extention must be set by "ARC_EXT".' >&2; false; } + -rm -f '$(distdir).$(ARC_EXT)' + tardir=$(distdir) && $(am__tar) | $(ARC_CMD) >$(distdir).$(ARC_EXT) + $(am__post_remove_distdir) + +dist-custm2: distdir + @test -n "$(ARC_CMD)" || \ + { echo 'The valid archive command must be defined by "ARC_CMD".' >&2; false; } + @test -n "$(ARC_EXT)" || \ + { echo 'The archive file extention must be set by "ARC_EXT".' >&2; false; } + -rm -f '$(distdir).$(ARC_EXT)' + tardir=$(distdir) && $(am__tar) >$(distdir).tar && $(ARC_CMD) $(distdir).tar + rm -f $(distdir).tar + $(am__post_remove_distdir) +