Browse Source

Do parallel builds for Ubuntu packages

Make the builds faster as we now run them often via Travis.
tags/v1.9.90
Pierre Ossman 5 years ago
parent
commit
9f90b6d568

+ 5
- 3
contrib/packages/deb/ubuntu-trusty/debian/rules View File

@@ -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


+ 4
- 2
contrib/packages/deb/ubuntu-xenial/debian/rules View File

@@ -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


Loading…
Cancel
Save