make: add distcheck-fast target

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 <maennich@google.com>
This commit is contained in:
Matthias Maennich 2020-04-20 09:46:05 +02:00 committed by Dodji Seketeli
parent 9e5ca9c074
commit d70079e955

View File

@ -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"