From: g0dil Date: Wed, 29 Aug 2007 14:16:16 +0000 (+0000) Subject: Add support vor CONCURRENCY_LEVEL and 'scons -j ' to debian build X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ac4073ce6e7ae6e89129c5874baad05df9f44480;p=senf.git Add support vor CONCURRENCY_LEVEL and 'scons -j ' to debian build git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@415 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index da35a8d..391fb03 100644 --- a/SConstruct +++ b/SConstruct @@ -36,7 +36,8 @@ env.Append( DOXY_HTML_XSL = '#/doclib/html-munge.xsl', ENV = { 'TODAY' : str(datetime.date.today()), 'REVISION' : rev, - 'LOGNAME' : os.environ['LOGNAME'] # needed by the debian build scripts + 'LOGNAME' : os.environ['LOGNAME'], # needed by the debian build scripts + 'CONCURRENCY_LEVEL' : env.GetOption('num_jobs') or "1" }, ) diff --git a/debian/rules b/debian/rules index 6da3900..4491055 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,8 @@ export debian_build CFLAGS = -Wall -g +CONCURRENCY_LEVEL ?= 1 + ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -42,7 +44,7 @@ build: build-stamp build-stamp: configure-stamp dh_testdir # # Add here commands to compile the package. - scons all final=1 + scons -j $(CONCURRENCY_LEVEL) all final=1 touch $@ clean: