+Tue Mar 18 17:20:03 1997 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (target_defined): New sub.
+ (handle_footer): Error if target .SUFFIXES used.
+
Sun Mar 16 14:33:41 1997 Tom Tromey <tromey@cygnus.com>
* automake.in (handle_lib_objects): Set seen_c_source to line
- if the target is mandated (eg, "info"), tell the user
consider auto-modifying the program name to work around this
+* if it isn't possible do use .SUFFIXES as a target, then give error
+ if it appears in Makefile.am
+
================================================================
should clean up texinfos.am; one rule is repeated 3 times, but
elsif ($arglist[0] eq '--version')
{
print "aclocal (GNU $PACKAGE) $VERSION\n";
- print "Copyright (C) 1996 Free Software Foundation, Inc.\n";
- print "aclocal comes with ABSOLUTELY NO WARRANTY.\n";
- print "You may redistribute copies of aclocal\n";
- print "under the terms of the GNU General Public License.\n";
- print "For more information about these matters, see the file named COPYING.\n";
+ print "Copyright (C) 1996, 1997 Free Software Foundation, Inc.\n";
+ print "This is free software; see the source for copying conditions. There is NO\n";
+ print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n";
exit 0;
}
elsif ($arglist[0] eq '--help')
if ($arglist[0] eq "--version")
{
print "automake (GNU $PACKAGE) $VERSION\n";
- print "Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.\n";
- print "automake comes with ABSOLUTELY NO WARRANTY.\n";
- print "You may redistribute copies of automake\n";
- print "under the terms of the GNU General Public License.\n";
- print "For more information about these matters, see the file named COPYING.\n";
+ print "Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.\n";
+ print "This is free software; see the source for copying conditions. There is NO\n";
+ print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n";
+
exit 0;
}
elsif ($arglist[0] eq "--help")
# line.
push (@suffixes, &variable_value_as_list ('SUFFIXES'));
}
+ if (&target_defined ('.SUFFIXES'))
+ {
+ &am_line_error ('.SUFFIXES',
+ "use variable \`SUFFIXES', not target \`.SUFFIXES'");
+ }
# Note: AIX 4.1 /bin/make will fail if any suffix rule appears
# before .SUFFIXES. So we make sure that .SUFFIXES appears before
################################################################
+# See if a target exists.
+sub target_defined
+{
+ local ($target) = @_;
+ return defined $targets{$target};
+}
+
# See if a variable exists.
sub variable_defined
{
@item --gnu
Set the global strictness to @samp{gnu}. @xref{Gnits} for more
-information.
+information. This is the default strictness.
@item --help
Print a summary of the command line options and exit.
@node ANSI
@section Automatic de-ANSI-fication
-Although the GNU standards prohibit it, some GNU programs are written in
-ANSI C. This is possible because each source file can be
-``de-ANSI-fied'' before the actual compilation takes place.
-@c NOTE that the standards no longer prohibit this!
-@c What does that imply for this feature?
+Although the GNU standards allow the use of ANSI C, this can have the
+effect of limiting portability of a package to some older compilers
+(notably SunOS).
+
+Automake allows you to work around this problem on such machines by
+``de-ANSI-fying'' each source file before the actual compilation takes
+place.
If the @file{Makefile.am} variable @code{AUTOMAKE_OPTIONS}
@vindex AUTOMAKE_OPTIONS
be built before all other directories using these files. Automake does
not currently check that this is the case.
-
@node Dependencies
@section Automatic dependency tracking
-@set UPDATED 28 February 1997
+@set UPDATED 18 March 1997
@set EDITION 1.1m
@set VERSION 1.1m
-@set UPDATED 28 February 1997
+@set UPDATED 18 March 1997
@set EDITION 1.1m
@set VERSION 1.1m