d/rules: make build more verbose by default 39/1739/2
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 23 Jun 2016 11:54:37 +0000 (13:54 +0200)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Thu, 23 Jun 2016 15:54:19 +0000 (08:54 -0700)
With so many changes to linking, flags and also our plan for further
optimization along the way it is useful to make the build more verbose
by default to spot issues right in the main build log.

Change-Id: I0c41d232bc7b353b9e8a91e7e3934a9b4a3a46cc
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
debian/rules

index 640ed3a..f262b48 100755 (executable)
@@ -1,7 +1,8 @@
 #!/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_VERBOSE=1
+export DH_OPTIONS=-v
 
 VERSION := $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*:)?(.*)-(.*)/\2/p')
 
@@ -60,7 +61,7 @@ build-indep: build-config
 
 build-arch: build-config
        dh_testdir
-       $(MAKE) O=$(DPDK_STATIC_DIR) build
+       $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) build
        # Unfortunately the decision about having static or shared libraries is
        # made for the whole build, which then produces only .a or .so files
        # (but not both).
@@ -73,7 +74,7 @@ build-arch: build-config
        cp -a $(DPDK_STATIC_DIR) $(DPDK_SHARED_DIR)
        sed -ri 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' \
                $(DPDK_SHARED_DIR)/.config
-       $(MAKE) O=$(DPDK_SHARED_DIR) build
+       $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) build
 
 build: build-arch build-indep