diff options
-rw-r--r-- | SConstruct | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |