From: Pierre Ossman Date: Mon, 21 Jan 2019 15:29:20 +0000 (+0100) Subject: Do parallel builds for Ubuntu packages X-Git-Tag: v1.9.90~39^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f90b6d568742aa514005e6a3fd955a95ecdd109;p=tigervnc.git Do parallel builds for Ubuntu packages Make the builds faster as we now run them often via Travis. --- diff --git a/contrib/packages/deb/ubuntu-trusty/debian/rules b/contrib/packages/deb/ubuntu-trusty/debian/rules index 1ddd06ed..a84e86b9 100755 --- a/contrib/packages/deb/ubuntu-trusty/debian/rules +++ b/contrib/packages/deb/ubuntu-trusty/debian/rules @@ -10,6 +10,8 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS +NUMJOBS := -j$(shell nproc) + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -58,7 +60,7 @@ fltk-stamp: (cd fltk-*;DSOFLAGS="$(filter-out -fPIE -pie,$(LDFLAGS))" \ ./configure --enable-shared=no --enable-cairo --enable-cp936 \ --with-optim="$(CFLAGS) $(XCFLAGS)" --libdir=$(libdir)) - make -C fltk-* + make $(NUMJOBS) -C fltk-* touch fltk-stamp configure: config-stamp @@ -145,8 +147,8 @@ build-arch-stamp: # Add here command to compile/build the package. # Build first things. # Build Xvnc - make LDFLAGS="-lpng" - (cd unix/xserver;make) + make $(NUMJOBS) LDFLAGS="-lpng" + make $(NUMJOBS) -C unix/xserver touch build-arch-stamp diff --git a/contrib/packages/deb/ubuntu-xenial/debian/rules b/contrib/packages/deb/ubuntu-xenial/debian/rules index 7509e7b4..3d58d282 100644 --- a/contrib/packages/deb/ubuntu-xenial/debian/rules +++ b/contrib/packages/deb/ubuntu-xenial/debian/rules @@ -10,6 +10,8 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS +NUMJOBS := -j$(shell nproc) + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -124,8 +126,8 @@ build-arch-stamp: # Add here command to compile/build the package. # Build first things. # Build Xvnc - make LDFLAGS="-lpng" - (cd unix/xserver;make) + make $(NUMJOBS) LDFLAGS="-lpng" + make $(NUMJOBS) -C unix/xserver touch build-arch-stamp