dist: distdir not unconditionally removed anymore for xz and lzip
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 6 Jan 2012 22:37:09 +0000 (23:37 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 11 Jan 2012 17:59:58 +0000 (18:59 +0100)
commit96fef7a389e922d6d9bd949396be4c76ead7f61d
treeec148171f6679460babf80ebb4bfe115e73e7396
parentfa881fc9b47b27ab0e9c0b81a106a7fb11cd6639
dist: distdir not unconditionally removed anymore for xz and lzip

This change fixes automake bug#10444 a.k.a. bug#10448.

The 'dist-xz' and 'dist-lzip' recipes were erroneously using
'$(am__remove_distdir)' instead of '$(am__post_remove_distdir)'
to cleanup the '$(distdir)'; so a "make dist" issued in a package
using (say) gzip and xz compression would have failed to properly
created the gzip tarball, since the distdir was unconditionally
removed by "make dist-xz" upon its completion, instead of being
left populated for the following "make dist-gzip".

The problem with 'dist-xz' was introduced in the merge commit
`v1.11-1142-g47587d1', and the problem with 'dist-lzip' was
introduced in the merge commit `v1.11-1673-gc1b14e9'

* lib/am/distdir.am (dist-xz): Use '$(am__post_remove_distdir)',
not '$(am__remove_distdir)'.
(dist-lzip): Likewise.
lib/am/distdir.am