Support passing of parallel=<n> in build options

svn:r14984
This commit is contained in:
Peter Palfrader 2008-06-05 23:22:35 +00:00
parent 7f0cfe119b
commit b2d3060c8c
2 changed files with 8 additions and 1 deletions

3
debian/changelog vendored
View File

@ -10,8 +10,9 @@ tor (0.2.0.27-rc-X) Xxperimental; urgency=low
* And mention www.tp.o instead of the old tor.eff.org in the long
description.
* No longer ignore failure of make clean in the clean target.
* Support passing of parallel=<n> in build options.
-- Peter Palfrader <weasel@debian.org> Fri, 06 Jun 2008 00:52:58 +0200
-- Peter Palfrader <weasel@debian.org> Fri, 06 Jun 2008 00:58:37 +0200
tor (0.2.0.26-rc-1) experimental; urgency=critical

6
debian/rules vendored
View File

@ -48,6 +48,12 @@ ifneq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
RUN_TEST = no
endif
# Support passing of parallel=<n> in build options
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
CONF_OPTIONS =
# build against libdmalloc4 - it better be installed
ifneq (,$(findstring with-dmalloc,$(DEB_BUILD_OPTIONS)))