summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SConstruct10
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 31244fb..1b0395b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -33,6 +33,14 @@ ui_builder = Builder(action = build_ui)
env['BUILDERS']['walls_ui'] = ui_builder
env.walls_ui('walls_ui.h', 'walls.ui')
-env.Program('walls', Glob('*.c'))
+walls = env.Program('walls', Glob('*.c'))
+
+destdir = ARGUMENTS.get('DESTDIR', '')
+prefix = ARGUMENTS.get('PREFIX', '/usr/local')
+
+final_dest = destdir + prefix + '/bin'
+
+env.Install(final_dest, walls)
+env.Alias('install', final_dest)
# vim: syn=python