summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index 3da79be8..f31ac53b 100644
--- a/wscript
+++ b/wscript
@@ -48,6 +48,9 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', '-DCONFIG_H_PATH=\\\"waf-config.h\\\"')
def build(bld):
+ opts = Params.g_options
+ opts.datadir = opts.datadir or bld.env()['PREFIX'] + 'share'
+ opts.moduledir = opts.moduledir or bld.env()['PREFIX'] + 'lib/ingen'
bld.add_subdirs('src/engine')
bld.add_subdirs('src/serialisation')
bld.add_subdirs('src/module')