Wed Feb 14 08:36:02 1996 Tom Tromey <tromey@creche.cygnus.com>
+ Implemented --verbose feature; idea from Greg Woods:
+ * automake.in (verbose): New global.
+ (generate_makefile): Print creating message if verbose.
+ (grep_for_vers_texi): Print message if verbose.
+ (handle_dependencies): Ditto.
+ (scan_configure): Ditto.
+ (read_am_file): Ditto.
+ (file_contents_with_transform): Ditto.
+ (parse_arguments): Added --verbose.
+ (initialize_global_constants): Ditto.
+
* automake.in (get_object_extension): Use am_line_error.
(handle_source_transform): Ditto.
(handle_libraries): Ditto.
(handle_configure): Use am_line_error.
(scan_configure): Set config_header_line.
(config_header_line): New global.
+ Use @PERL@ to find perl during exec. From Greg Woods.
Tue Feb 13 12:06:51 1996 Tom Tromey <tromey@creche.cygnus.com>
# -*- perl -*-
# @configure_input@
-eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
+eval 'exec @PERL@ -S $0 ${1+"$@"}'
if $running_under_some_shell;
# automake - create Makefile.in from Makefile.am
# code should be included in generated Makefile.in.
$cmdline_use_dependencies = 1;
+# TRUE if in verbose mode.
+$verbose = 0;
+
# This holds our (eventual) exit status. We don't actually exit until
# we have processed all input files.
$exit_status = 0;
{
$install_missing = 1;
}
+ elsif ($arglist[0] eq '--verbose')
+ {
+ $verbose = 1;
+ }
elsif ($arglist[0] eq '--')
{
# Stop option processing.
{
local ($makefile) = @_;
- # print "creating ", $makefile, ".in\n";
+ print "automake: creating ", $makefile, ".in\n" if $verbose;
&initialize_per_input;
$relative_dir = &dirname ($makefile);
&am_error ("couldn't open \`$filename': $!");
return '';
}
+ print "automake: reading $filename\n" if $verbose;
while (<TEXI>)
{
&am_error ("couldn't open $depfile", $!);
next;
}
+ print "automake: reading $depfile\n" if $verbose;
# Slurp entire file.
$output_rules .= join ('', <DEP_FILE>);
{
open (CONFIGURE, 'configure.in')
|| die "automake: couldn't open configure.in: $!\n";
+ print "automake: reading configure.in\n" if $verbose;
# Reinitialize libsources here. This isn't really necessary,
# since we currently assume there is only one configure.in. But
'header-vars');
open (AM_FILE, $amfile) || die "automake: couldn't open $amfile: $!\n";
+ print "automake: reading $amfile\n" if $verbose;
$output_vars .= ("# Makefile.in generated automatically by automake "
. $VERSION . " from Makefile.am\n");
--install-missing install missing standard files
--output-dir=DIR put generated Makefile.in's into DIR
--strictness=LEVEL set strictness level. LEVEL is normal, gnu, gnits
+ --verbose verbosely list files processed
--version print version number, then exit\n";
# Copyright on generated Makefile.ins.
open (FC_FILE, $file)
|| die "automake: installation error: cannot open \`$file'\n";
+ print "automake: reading $file\n" if $verbose;
local ($was_rule) = 0;
local ($result_vars) = '';