Skip to content

Commit a3588da

Browse files
committed
Add 'if $Verbose' to 2 flush() print statements
For distributions with lots of sub-modules, the constant chatter of "Generating a Unix-style Makefile\nWriting Makefile for My::ModuleA" can get in the way of identifying problems during Makefile generation. Most other print statements in MakeMaker.pm (that aren't warnings) have some form of 'if $Verbose' postfix to cut down on chatter. This patch also permits the printing of those lines for the top-level Makefile.
1 parent 13386c9 commit a3588da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ExtUtils/MakeMaker.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,8 @@ sub flush {
12221222
my $self = shift;
12231223

12241224
my $finalname = $self->{MAKEFILE};
1225-
printf "Generating a %s %s\n", $self->make_type, $finalname;
1226-
print "Writing $finalname for $self->{NAME}\n";
1225+
printf "Generating a %s %s\n", $self->make_type, $finalname if $Verbose || !$self->{PARENT};;
1226+
print "Writing $finalname for $self->{NAME}\n" if $Verbose || !$self->{PARENT};;
12271227

12281228
unlink($finalname, "MakeMaker.tmp", $Is_VMS ? 'Descrip.MMS' : ());
12291229

0 commit comments

Comments
 (0)