diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-06-05 23:22:35 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-06-05 23:22:35 +0000 |
commit | b2d3060c8cb8853615830dd3fcba324397fa1850 (patch) | |
tree | bf6a9b6dc0224252144a90058c9f3d569407676a /debian/rules | |
parent | 7f0cfe119b203fb105817a275bda6be0caefb846 (diff) | |
download | tor-b2d3060c8cb8853615830dd3fcba324397fa1850.tar.gz tor-b2d3060c8cb8853615830dd3fcba324397fa1850.zip |
Support passing of parallel=<n> in build options
svn:r14984
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 739d489f90..6a82de1572 100755 --- a/debian/rules +++ b/debian/rules @@ -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))) |