diagnostics when not input file is found.
* tests/output5.test: Adjust.
Suggested by Jens Petersen.
+2004-05-15 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * automake.in (parse_arguments, MAIN): Give more precise
+ diagnostics when not input file is found.
+ * tests/output5.test: Adjust.
+ Suggested by Jens Petersen.
+
2004-05-14 Alexandre Duret-Lutz <adl@gnu.org>
* lib/am/libs.am (AR, ARFLAGS): Move these definition ...
$output_directory = '.';
}
+ my $errspec = 0;
foreach my $arg (@ARGV)
{
if ($arg =~ /^-./)
}
else
{
- error "no Automake input file found in `$arg'";
+ error "no Automake input file found for `$arg'";
+ $errspec = 1;
}
}
+ fatal "no input file found among supplied arguments"
+ if $errspec && ! @input_files;
}
################################################################
# Do configure.ac scan only once.
scan_autoconf_files;
-fatal "no `Makefile.am' found or specified\n"
- if ! @input_files;
+if (! @input_files)
+ {
+ my $msg = '';
+ $msg = "\nDid you forget AC_CONFIG_FILES([Makefile]) in $configure_ac?"
+ if -f 'Makefile.am';
+ fatal ("no `Makefile.am' found for any configure output$msg");
+ }
# Now do all the work on each file.
foreach my $file (@input_files)
#! /bin/sh
-# Copyright (C) 1997, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004 Free Software
+# Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
AUTOMAKE_fails
-grep 'found or specified' stderr
+grep 'AC_CONFIG_FILES(.Makefile.)' stderr