summaryrefslogtreecommitdiff
path: root/lib/Automake/Variable.pm
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-11-29 21:47:27 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-11-29 21:47:27 +0000
commit0099f67b215c766b3dfe81ec383e03be5c23085f (patch)
treebb3a3b3f52adf6d7e5df19f0e03c05671bc1ec1b /lib/Automake/Variable.pm
parent9177ef8953732721b03af161b1c814e6451255d4 (diff)
downloadautomake-0099f67b215c766b3dfe81ec383e03be5c23085f.tar.gz
* lib/Automake/Variable.pm (_do_recursive_traversal): Do not
update @_substfroms and @_substfroms for undefined variables. * tests/substre2.test: New file. * tests/Makefile.am (TESTS): Add substre2.test.
Diffstat (limited to 'lib/Automake/Variable.pm')
-rw-r--r--lib/Automake/Variable.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Automake/Variable.pm b/lib/Automake/Variable.pm
index d9d097703..0cd72cced 100644
--- a/lib/Automake/Variable.pm
+++ b/lib/Automake/Variable.pm
@@ -1323,13 +1323,14 @@ sub _do_recursive_traversal ($$&&$$)
$to = $3;
$from = quotemeta $2;
}
- push @_substfroms, $from;
- push @_substtos, $to;
my $subvar = var ($subvarname);
# Don't recurse into undefined variables.
next unless $subvar;
+ push @_substfroms, $from;
+ push @_substtos, $to;
+
my @res = $subvar->_do_recursive_traversal ($parent,
$fun_item,
$fun_collect,