From: Jochen Sprickerhof Date: Fri, 14 Sep 2018 06:46:39 +0000 (+0200) Subject: use --max-parallel=2 for Ubuntu X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~139 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a93c8f85624b36633b9b36851946b5191d1249a;p=pcl.git use --max-parallel=2 for Ubuntu --- diff --git a/debian/rules b/debian/rules index c0391a1e..3c9ead54 100755 --- a/debian/rules +++ b/debian/rules @@ -16,23 +16,17 @@ ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) CXXFLAGS+=--param ggc-min-expand=20 endif -ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) - ifeq ($(DEB_HOST_ARCH),amd64) - export DEB_BUILD_MAINT_OPTIONS=parallel=2 - endif - ifeq ($(DEB_HOST_ARCH),arm64) - export DEB_BUILD_MAINT_OPTIONS=parallel=2 - endif - ifeq ($(DEB_HOST_ARCH),ppc64el) - export DEB_BUILD_MAINT_OPTIONS=parallel=2 - endif -endif - BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) # Multiarch. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) + PARALLEL=--max-parallel=2 +else + PARALLEL= +endif + .PHONY: override_dh_auto_configure \ override_dh_install \ override_dh_installchangelogs @@ -106,4 +100,4 @@ override_dh_installchangelogs: %: - dh $@ --builddirectory=build + dh $@ $(PARALLEL) --builddirectory=build