From patchwork Mon Apr 20 07:46:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Matthias_M=C3=A4nnich?= X-Patchwork-Id: 39092 From: maennich@google.com (Matthias Maennich) Date: Mon, 20 Apr 2020 09:46:05 +0200 Subject: [PATCH] make: add distcheck-fast target Message-ID: <20200420074605.109076-1-maennich@google.com> The default compression flag defined by automake via GZIP_ENV is --best. That is pretty expensive for when you just want to make sure your change is done properly to pass 'make distcheck'. Hence add a convenience target 'make distcheck-fast' that sets GZIP_ENV to --fast and runs distcheck with that. On my machine, this almost cuts the 'make distcheck' time in half: distcheck 4min 40s distcheck-fast 2min 32s This is not invasive as it does not change the existing distcheck target. * Makefile.am: add distcheck-fast make target Signed-off-by: Matthias Maennich --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.am b/Makefile.am index 396d64238840..f4dbff250059 100644 --- a/Makefile.am +++ b/Makefile.am @@ -82,3 +82,9 @@ tarball-and-all: tag-and-all tag-and-all: distcheck $(MAKE) tag-release-only + +# the default for GZIP_ENV is --best, which is pretty slow for check runs +# distcheck-fast therefore compresses with --fast instead +distcheck-fast: + $(MAKE) distcheck GZIP_ENV="--fast" +