diff options
author | Colin Walters <walters@verbum.org> | 2010-12-16 15:20:01 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-16 15:20:01 -0500 |
commit | 9700ff720116cdb7de8d61acfb7ba22dfa413089 (patch) | |
tree | 01afced8301931e842b044d5d4510e8796813424 /bin/metabuild | |
parent | f5838e69b5b787a888be6e2ddecd74d1db0bfb2f (diff) | |
download | homegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.tar.gz homegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.tar.xz homegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.zip |
metabuild: Use V=1 if necessary by default
We want the full logs.
Diffstat (limited to 'bin/metabuild')
-rwxr-xr-x | bin/metabuild | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/metabuild b/bin/metabuild index d2e89bb..fb816ba 100755 --- a/bin/metabuild +++ b/bin/metabuild @@ -201,6 +201,19 @@ class BuildSystemScanner(object): def get_makefile(cls): return cls._find_file(('Makefile', )) + @classmethod + def get_make_requires_v1(cls): + src = cls.get_configure_source_script() + if not src: + return False + f = open(src) + for line in f: + if line.find('AM_SILENT_RULES') >= 0: + f.close() + return True + f.close() + return False + def phase_bootstrap(): have_configure = BuildSystemScanner.get_configure_script() have_configure_source = BuildSystemScanner.get_configure_source_script() @@ -254,6 +267,11 @@ build_status = False def phase_build(): if os.path.exists('Makefile'): log("Detected Makefile, using it") + need_v1 = BuildSystemScanner.get_make_requires_v1() + args = makeargs + if need_v1: + log("Detected AM_SILENT_RULES, overriding it with V=1") + args.append('V=1') make = BuildProcess(makeargs) make.run_async(phase_complete) else: |