From e63c71d637f6c50356dedb3f77c8b7d8f72d13fa Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 25 Mar 2022 10:10:00 +0100 Subject: make a tar.gz distribution archive in one go (no intermediate .tar generation) --- Makefile.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile.in b/Makefile.in index 48335a9..0660114 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,7 +36,7 @@ default: $(default_target) install install-html install-dvi install-pdf install-ps uninstall \ install-strip clean distclean mostlyclean maintainer-clean TAGS info \ dvi html pdf ps dist check installcheck installdirs \ - test-prepare test test-environment haketilo-$(version).tar + test-prepare test test-environment haketilo-$(version).tar.gz # core files icons/haketilo16.png: icons/haketilo.svg @@ -99,7 +99,7 @@ clean mostlyclean: rm -f mozilla-build.zip chromium-build.zip exports_init.js rm -rf pytest.ini certs injected_scripts geckodriver.log rm -rf certs/ test__pycache__/ .pytest_cache/ - rm -f *.tar *.tar.gz + rm -f *.tar.gz distclean: clean rm -f Makefile config.status record.conf @@ -119,15 +119,12 @@ $(srcdir)/FILES.txt: $(srcdir)/.git printf 'FILES.txt\n' >> $@; \ fi -haketilo-$(version).tar: FILES.txt +haketilo-$(version).tar.gz: FILES.txt HERE="$$(pwd)"; \ cd "$(srcdir)"; \ - tar -caf "$$HERE/$@" --transform='s_^_haketilo-$(version)/_' \ + tar -czf "$$HERE/$@" --transform='s_^_haketilo-$(version)/_' \ $$(cat FILES.txt) -haketilo-$(version).tar.gz: haketilo-$(version).tar - gzip < haketilo-$(version).tar > haketilo-$(version).tar.gz - dist: haketilo-$(version).tar.gz # Files for constructing the makefile -- cgit v1.2.3