diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-30 14:34:23 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-30 14:34:23 +0100 |
commit | 59f19a99c8a56df5e72de3f7c0688493461c3cae (patch) | |
tree | 2efbf8267122614d9336f23489343793cc99f858 /morphlib/buildsystem.py | |
parent | 31f9de66f4a002f0d24b08e396eda150d4f8ce39 (diff) | |
download | morph-59f19a99c8a56df5e72de3f7c0688493461c3cae.tar.gz |
Add the build commands for autotools
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r-- | morphlib/buildsystem.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py index 3aa1e1ce..3d19af48 100644 --- a/morphlib/buildsystem.py +++ b/morphlib/buildsystem.py @@ -74,6 +74,21 @@ class AutotoolsBuildSystem(BuildSystem): name = 'autotools' + def __init__(self): + self.configure_commands = [ + 'if [ -e autogen.sh ]; then ./autogen.sh; ' + + 'elif [ ! -e ./configure ]; then autoreconf -ivf; fi', + './configure --prefix="$PREFIX"', + ] + self.build_commands = [ + 'make', + ] + self.test_commands = [ + ] + self.install_commands = [ + 'make DESTDIR="$DESTDIR" install', + ] + def used_by_project(self, srcdir): indicators = [ 'autogen.sh', |