Implemente terse DEB_BUILD_OPTIONS 12/14512/2
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 27 Aug 2018 15:24:41 +0000 (16:24 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 27 Aug 2018 16:08:10 +0000 (17:08 +0100)
Change-Id: I05ce1e54095ea7f8256ca7840951252b0105d1cb
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
debian/rules

index 3628673..3d35e1c 100755 (executable)
@@ -1,8 +1,4 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-export DH_VERBOSE=1
-export DH_OPTIONS=-v
 
 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
 include /usr/share/dpkg/default.mk
@@ -17,6 +13,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+ifeq (,$(findstring terse,$(DEB_BUILD_OPTIONS)))
+       export DH_VERBOSE=1
+       export DH_OPTIONS=-v
+endif
+
 # Support backporting to jessie
 dpkg_version_lt = $(shell dpkg --compare-versions $$(dpkg --status dpkg-dev | grep Version | cut -d' ' -f2) lt-nl "1.18.11" && echo yes)
 ifeq (yes, $(dpkg_version_lt))