summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 14:32:08 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 14:32:08 +0100
commit31f9de66f4a002f0d24b08e396eda150d4f8ce39 (patch)
treeef7c596a2315851d5794b0f659d7cd42b6ca77fe /morphlib/buildsystem.py
parent98961cb380a78ac76a58dc61ee1aa881f730180e (diff)
downloadmorph-31f9de66f4a002f0d24b08e396eda150d4f8ce39.tar.gz
Add a dummy build system
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index 9ee62d03..3aa1e1ce 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -52,6 +52,22 @@ class ManualBuildSystem(BuildSystem):
return False
+class DummyBuildSystem(BuildSystem):
+
+ '''A dummy build system, useful for debugging morphologies.'''
+
+ name = 'dummy'
+
+ def __init__(self):
+ self.configure_commands = ['echo dummy configure']
+ self.build_commands = ['echo dummy build']
+ self.test_commands = ['echo dummy test']
+ self.install_commands = ['echo dummy install']
+
+ def used_by_project(self, srcdir):
+ return False
+
+
class AutotoolsBuildSystem(BuildSystem):
'''The automake/autoconf/libtool holy trinity.'''