diff options
author | Luca Boccassi <bluca@debian.org> | 2018-11-02 12:50:43 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2018-11-02 12:50:43 +0000 |
commit | dbdc8f0188b26734031c00c8fb227208841dd531 (patch) | |
tree | f15f54db7fb8293ebf0f4aa0a0d59be732a8ab0e /lib/Debian | |
parent | 508b3158d7bdabb5f7c2263d56de935a2a42cce6 (diff) | |
download | debhelper-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.pm | 8 |
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(); |