changeset 3463:23fcbc57ed50

always add -j to make command, not after FOO=bar
author Han-Wen Nienhuys <hanwen@lilypond.org>
date Thu, 10 May 2007 02:28:52 -0300
parents 5a107cd73f11
children e65e6000f5eb
files gub/targetpackage.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/targetpackage.py	Thu May 10 02:28:30 2007 -0300
+++ b/gub/targetpackage.py	Thu May 10 02:28:52 2007 -0300
@@ -86,7 +86,8 @@
             c = 'DISTCC_HOSTS="%s" %s' % (self.settings.cross_distcc_hosts , c)
             c = 'PATH="%(cross_distcc_bindir)s:$PATH" ' + c
         elif self.settings.cpu_count_str:
-            c += ' -j%s '% self.settings.cpu_count_str
+            c = re.sub (r'\bmake\b', 'make -j%s '% self.settings.cpu_count_str, c)
+
         return c
             
     def configure (self):