]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] vars: simplify logic for appending conditionally
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 3 May 2012 10:00:35 +0000 (12:00 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 31 May 2012 08:23:13 +0000 (10:23 +0200)
commit87508438b9e3d80046c890e3e5168138d61eb269
tree5f0f8164ab98c3a49d600bb95315a9a427921740
parent620d1508bb9a008c236d25be822e5fc2d4a0eaca
[ng] vars: simplify logic for appending conditionally

This will make the generated Makefiles more bloated, but that should
be OK, since eventually further refactorings will change the format used
to output conditional variables extending, and the resulting Makefiles
will once again be smaller and cleaner.

* lib/Automake/Variable.pm (define): When appending to an existing
variable *defined in another condition*, don't bother to avoid the
creation of intermediate internal variables when that's not really
needed; just create them unconditionally.
(_new): Don't reset $self->{'last-append'} anymore, it has been
removed (it was only used in the 'define' function).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/Automake/Variable.pm
t/cond38.sh