summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-12-16 15:20:01 -0500
committerColin Walters <walters@verbum.org>2010-12-16 15:20:01 -0500
commit9700ff720116cdb7de8d61acfb7ba22dfa413089 (patch)
tree01afced8301931e842b044d5d4510e8796813424
parentf5838e69b5b787a888be6e2ddecd74d1db0bfb2f (diff)
downloadhomegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.zip
homegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.tar.gz
homegit-MOVED-TO-GNOME-9700ff720116cdb7de8d61acfb7ba22dfa413089.tar.xz
metabuild: Use V=1 if necessary by default
We want the full logs.
-rwxr-xr-xbin/metabuild18
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: