Changeset 112153 in webkit


Ignore:
Timestamp:
Mar 26, 2012 3:14:38 PM (12 years ago)
Author:
kubo@profusion.mobi
Message:

[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
https://bugs.webkit.org/show_bug.cgi?id=82209

Reviewed by Martin Robinson.

Respecting the $MAKE environment variable when it is defined makes
building jhbuild more portable, as some platforms may have GNU
make as gmake, for example.

  • jhbuild/jhbuild-wrapper:

(install_jhbuild):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r112150 r112153  
     12012-03-26  Raphael Kubo da Costa  <rakuco@FreeBSD.org>
     2
     3        [jhbuild] Use $MAKE if it is defined to build jhbuild itself.
     4        https://bugs.webkit.org/show_bug.cgi?id=82209
     5
     6        Reviewed by Martin Robinson.
     7
     8        Respecting the $MAKE environment variable when it is defined makes
     9        building jhbuild more portable, as some platforms may have GNU
     10        make as gmake, for example.
     11
     12        * jhbuild/jhbuild-wrapper:
     13        (install_jhbuild):
     14
    1152012-03-26  Dirk Pranke  <dpranke@chromium.org>
    216
  • trunk/Tools/jhbuild/jhbuild-wrapper

    r112139 r112153  
    1919
    2020import os
     21import shlex
    2122import subprocess
    2223import sys
     
    9192        raise Exception('jhbuild configure failed with return code: %i' % process.returncode)
    9293
    93     process = subprocess.Popen(['make', 'install'], cwd=jhbuild_source_path)
     94    # This is a hackish approach to make the subprocess.Popen call even when people set
     95    # MAKE to 'make -j3' instead of using the MAKEFLAGS environment variable.
     96    make = shlex.split(os.environ.get('MAKE', 'make'))
     97
     98    process = subprocess.Popen(make + ['install'], cwd=jhbuild_source_path)
    9499    process.wait()
    95100    if process.returncode != 0:
Note: See TracChangeset for help on using the changeset viewer.