+Sun Sep 15 22:45:43 1996 Tom Tromey <tromey@creche.cygnus.com>
+
+ * automake.in (initialize_per_input): Init content_seen.
+ (variable_value_as_list): Set content_seen entry.
+ (define_variable): Ditto.
+ (define_pretty_variable): Ditto.
+ (check_source_typos): New sub.
+ (generate_makefile): Call it.
+
Thu Sep 12 15:03:19 1996 Tom Tromey <tromey@creche.cygnus.com>
* automake.in (handle_source_transform): Removed extraneous
Priorities for release:
[ none ]
+check for misspellings in other variables?
+which ones? _LDADD _DEPENDENCIES _LIBADD
+maybe more?
+
must at least partially rewrite dist system (to handle distributing
info files, which is currently somewhat broken).
&handle_gettext;
&handle_libraries;
&handle_programs;
+ &check_source_typos;
&handle_scripts;
# This must be run after all the sources are scanned.
}
}
+# See if any _SOURCES variable were misspelled.
+sub check_source_typos
+{
+ local ($varname);
+ foreach $varname (keys %contents)
+ {
+ if ($varname =~ /_SOURCES$/ && ! $content_seen{$varname})
+ {
+ &am_line_error ($varname,
+ "invalid unused variable name: \`$varname'");
+ }
+ }
+}
+
# Handle scripts.
sub handle_scripts
{
}
else
{
+ $content_seen{$var} = 1;
foreach (split (' ', $contents{$var}))
{
# Handle variable substitutions.
{
$output_vars .= $var . ' = ' . $value . "\n";
$contents{$var} = $value;
+ $content_seen{$var} = 1;
}
}
{
$contents{$var} = join (' ', @value);
&pretty_print ($var . ' = ', '', @value);
+ $content_seen{$var} = 1;
}
}
# %contents are defined.
%content_lines = ();
+ # This holds a 1 if a particular variable was examined.
+ %content_seen = ();
+
# This holds the "relative directory" of the current Makefile.in.
# Eg for src/Makefile.in, this is "src".
$relative_dir = '';