summaryrefslogtreecommitdiff
path: root/lib/Debian
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-11-02 12:50:43 +0000
committerLuca Boccassi <bluca@debian.org>2018-11-02 12:50:43 +0000
commitdbdc8f0188b26734031c00c8fb227208841dd531 (patch)
treef15f54db7fb8293ebf0f4aa0a0d59be732a8ab0e /lib/Debian
parent508b3158d7bdabb5f7c2263d56de935a2a42cce6 (diff)
downloaddebhelper-dbdc8f0188b26734031c00c8fb227208841dd531.tar.gz
makefile.pm: pass V=1/0 depending on DH_QUIET
Allows a terse build to be quieter, and defaults to a verbose build as indicated by Debian Policy 4.2.0 (section 4.9). Signed-off-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'lib/Debian')
-rw-r--r--lib/Debian/Debhelper/Buildsystem/makefile.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Debian/Debhelper/Buildsystem/makefile.pm b/lib/Debian/Debhelper/Buildsystem/makefile.pm
index 052af0b4..6e661822 100644
--- a/lib/Debian/Debhelper/Buildsystem/makefile.pm
+++ b/lib/Debian/Debhelper/Buildsystem/makefile.pm
@@ -9,7 +9,7 @@ package Debian::Debhelper::Buildsystem::makefile;
use strict;
use warnings;
use Debian::Debhelper::Dh_Lib qw(dpkg_architecture_value escape_shell clean_jobserver_makeflags is_cross_compiling compat
- should_use_root gain_root_cmd);
+ should_use_root gain_root_cmd %dh);
use parent qw(Debian::Debhelper::Buildsystem);
my %DEB_DEFAULT_TOOLS = (
@@ -89,6 +89,12 @@ sub do_make {
unshift(@_, '-j1');
}
+ if ($dh{QUIET}) {
+ unshift(@_, 'V=0');
+ } else {
+ unshift(@_, 'V=1');
+ }
+
my @root_cmd;
if (exists($this->{_run_make_as_root}) and $this->{_run_make_as_root}) {
@root_cmd = gain_root_cmd();