diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-05-24 19:56:57 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-01 12:55:16 +0300 |
commit | f5b06de9cde1b210a7c247f8764f00ddb2f62eeb (patch) | |
tree | 31644e8ee0c435564277f381a39028b65afeb09c | |
parent | eb5be268d9868c2b9da09c36a8e26d0127e99ff0 (diff) | |
download | libmicrohttpd-f5b06de9cde1b210a7c247f8764f00ddb2f62eeb.tar.gz libmicrohttpd-f5b06de9cde1b210a7c247f8764f00ddb2f62eeb.zip |
Added support for custom command for tarball compression
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index bf9ca7b4..37d058b6 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -60,13 +60,32 @@ dist-hook: dist-po | |||
60 | @if test -w '$(distdir)/m4/c_backported.m4'; then \ | 60 | @if test -w '$(distdir)/m4/c_backported.m4'; then \ |
61 | echo "Use empty m4/c_backported.m4 for dist target"; \ | 61 | echo "Use empty m4/c_backported.m4 for dist target"; \ |
62 | touch -r '$(distdir)/m4/c_backported.m4' '$(distdir)/m4/c_backported.m4-tmst' && \ | 62 | touch -r '$(distdir)/m4/c_backported.m4' '$(distdir)/m4/c_backported.m4-tmst' && \ |
63 | echo '# Not used for distribution' > '$(distdir)/m4/c_backported.m4' && \ | 63 | echo 'dnl Not used for distribution' > '$(distdir)/m4/c_backported.m4' && \ |
64 | touch -r '$(distdir)/m4/c_backported.m4-tmst' '$(distdir)/m4/c_backported.m4' && \ | 64 | touch -r '$(distdir)/m4/c_backported.m4-tmst' '$(distdir)/m4/c_backported.m4' && \ |
65 | rm -f '$(distdir)/m4/c_backported.m4-tmst'; \ | 65 | rm -f '$(distdir)/m4/c_backported.m4-tmst'; \ |
66 | else \ | 66 | else \ |
67 | true; \ | 67 | true; \ |
68 | fi | 68 | fi |
69 | 69 | ||
70 | dist-custm: distdir | ||
71 | @test -n "$(ARC_CMD)" || \ | ||
72 | { echo 'The valid archive command must be defined by "ARC_CMD".' >&2; false; } | ||
73 | @test -n "$(ARC_EXT)" || \ | ||
74 | { echo 'The archive file extention must be set by "ARC_EXT".' >&2; false; } | ||
75 | -rm -f '$(distdir).$(ARC_EXT)' | ||
76 | tardir=$(distdir) && $(am__tar) | $(ARC_CMD) >$(distdir).$(ARC_EXT) | ||
77 | $(am__post_remove_distdir) | ||
78 | |||
79 | dist-custm2: distdir | ||
80 | @test -n "$(ARC_CMD)" || \ | ||
81 | { echo 'The valid archive command must be defined by "ARC_CMD".' >&2; false; } | ||
82 | @test -n "$(ARC_EXT)" || \ | ||
83 | { echo 'The archive file extention must be set by "ARC_EXT".' >&2; false; } | ||
84 | -rm -f '$(distdir).$(ARC_EXT)' | ||
85 | tardir=$(distdir) && $(am__tar) >$(distdir).tar && $(ARC_CMD) $(distdir).tar | ||
86 | rm -f $(distdir).tar | ||
87 | $(am__post_remove_distdir) | ||
88 | |||
70 | pre-dist-hook: pre-dist-hook-doc | 89 | pre-dist-hook: pre-dist-hook-doc |
71 | @echo "Preparing to make dist" | 90 | @echo "Preparing to make dist" |
72 | 91 | ||