+2003-08-12 Raja R Harinath <harinath@acm.org>
+
+ * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
+ * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
+ (define): Reword comment slightly.
+ * Variable.pm (_var_order, msg_cond_var): Typo in comment.
+ * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
+ spurious automake error exit.
+
2003-08-12 Alexandre Duret-Lutz <adl@gnu.org>
* lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
{
my ($self, $var, $cond) = @_;
- # Note that these rules doesn't consider the following
+ # Note that these rules don't consider the following
# example as ambiguous.
#
# if COND1
=item <$suffix_rules>
This maps the source extension for all suffix rule seen to
-a C<\hash> whose keys are the possible output extensions.
+a C<hash> whose keys are the possible output extensions.
Note that this is transitively closed by construction:
if we have
of `\..*$') to match extensions allows Automake to support dot-less
extensions.
-New extension should be registered with C<accept_extensions>.
+New extensions should be registered with C<accept_extensions>.
=cut
Messages about rules.
-=cute
+=cut
sub msg_rule ($$$;%)
{
for my $t (split (' ', $target))
{
++$target_count;
- # Check the rule for being a suffix rule. If so, store in a hash.
- # Either it's a rule for two known extensions...
+ # Check if the rule is a suffix rule: either it's a rule for
+ # two known extensions...
if ($t =~ /^($KNOWN_EXTENSIONS_PATTERN)($KNOWN_EXTENSIONS_PATTERN)$/
# ...or it's a rule with unknown extensions (.i.e, the rule
# looks like `.foo.bar:' but `.foo' or `.bar' are not
my $_VARIABLE_PATTERN = '^[.A-Za-z0-9_@]+' . "\$";
# The order in which variables should be output. (May contain
-# duplicates -- only the first occurence matters.)
+# duplicates -- only the first occurrence matters.)
my @_var_order;
# This keeps track of all variables defined by &_gen_varname.
=item C<msg_var ($channel, $var, $message, [%options])>
-messages about variables.
+Messages about variables.
=cut
var1 = $(var2)
if COND1
-var2 = $(var1:=.c) foo.cc
+var2 = $(var1:=.c) foo.c
else
var2 = $(var1:=.c)
endif