[or-cvs] r14984: Support passing of parallel=<n> in build options (tor/branches/tor-0_2_0-patches/debian)

weasel at seul.org weasel at seul.org
Thu Jun 5 23:22:36 UTC 2008


Author: weasel
Date: 2008-06-05 19:22:35 -0400 (Thu, 05 Jun 2008)
New Revision: 14984

Modified:
   tor/branches/tor-0_2_0-patches/debian/changelog
   tor/branches/tor-0_2_0-patches/debian/rules
Log:
Support passing of parallel=<n> in build options


Modified: tor/branches/tor-0_2_0-patches/debian/changelog
===================================================================
--- tor/branches/tor-0_2_0-patches/debian/changelog	2008-06-05 23:22:32 UTC (rev 14983)
+++ tor/branches/tor-0_2_0-patches/debian/changelog	2008-06-05 23:22:35 UTC (rev 14984)
@@ -10,8 +10,9 @@
   * 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 at debian.org>  Fri, 06 Jun 2008 00:52:58 +0200
+ -- Peter Palfrader <weasel at debian.org>  Fri, 06 Jun 2008 00:58:37 +0200
 
 tor (0.2.0.26-rc-1) experimental; urgency=critical
 

Modified: tor/branches/tor-0_2_0-patches/debian/rules
===================================================================
--- tor/branches/tor-0_2_0-patches/debian/rules	2008-06-05 23:22:32 UTC (rev 14983)
+++ tor/branches/tor-0_2_0-patches/debian/rules	2008-06-05 23:22:35 UTC (rev 14984)
@@ -48,6 +48,12 @@
 	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)))



More information about the tor-commits mailing list