summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorReini Urban <rurban@cpanel.net>2015-02-09 09:41:43 +0100
committerTony Cook <tony@develop-help.com>2015-10-14 14:27:12 +1100
commitb4c079ca5d8a33bb5ba0f089219e8578c50c9636 (patch)
tree32125383e41c6066e3353bb775e7c750088e7193 /make_ext.pl
parent25c1b134afb28e3391447584a4ccc05b5caa9922 (diff)
downloadperl-b4c079ca5d8a33bb5ba0f089219e8578c50c9636.tar.gz
make -s: silent means silent
check MAKEFLAGS for -s|--silent|--quiet and honor it
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl
index 1b055c3613..f6d9e0f120 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -612,6 +612,7 @@ sub just_pm_to_blib {
my ($first) = $mname =~ /^([^:]+)/;
my $pm_to_blib = IS_VMS ? 'pm_to_blib.ts' : 'pm_to_blib';
+ my $silent = defined $ENV{MAKEFLAGS} and $ENV{MAKEFLAGS} =~ /\b(s|silent|quiet)\b/;
foreach my $leaf (<*>) {
if (-d $leaf) {
@@ -656,7 +657,8 @@ sub just_pm_to_blib {
die "Inconsistent module $mname has both lib/ and $first/"
if $has_lib && $has_topdir;
- print "\nRunning pm_to_blib for $ext_dir directly\n";
+ print "\nRunning pm_to_blib for $ext_dir directly\n"
+ unless $silent;
my %pm;
if ($has_top) {