]> git.ipfire.org Git - thirdparty/automake.git/commit
cleanup: refactor code to initialize DIST_COMMON
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Dec 2014 12:39:30 +0000 (13:39 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Dec 2014 16:55:56 +0000 (17:55 +0100)
commit912383451a4a394383a8e95240e3e98ee68faf72
treee38fc6729d4029993aa51e180aea44522aaae276
parent2c0ffb86f2c7df3476cb9bc5a6e6ff724d95aa01
cleanup: refactor code to initialize DIST_COMMON

There is not need to make that an Automake variable early,
only to later get and munge its contents, and use the new
content to redefine the variable.

* bin/automake.in (@dist_common): New global variable.
(push_dist_common, handle_dist): Use it.
(handle_dist): Define am__DIST_COMMON instead of DIST_COMMON
directly.
(initialize_per_input): Reset it to empty.
($configure_dist_common): Turn this scalar variable ...
(@configure_dist_common): ... into this array variable.
(handle_dist): Adjust.
(required_file_check_or_copy): Update and wrap some comments.
* lib/am/distdir.am (DIST_COMMON): Append $(am__DIST_COMMON).
* t/distcom2.sh: Tighten a little.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
bin/automake.in
lib/am/distdir.am
t/distcom2.sh