diff --git a/Makefile b/Makefile index 761c8a2..840bd81 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,7 @@ +export SCONSFLAGS := -Q + all: - @scons -Q + @scons + +install: + @scons $@ diff --git a/SConstruct b/SConstruct index 5d2d4d1..8200055 100644 --- a/SConstruct +++ b/SConstruct @@ -1,5 +1,10 @@ +install_dir = '/usr/lib/gnome-screensaver/gnome-screensaver' + env = Environment() env.ParseConfig("pkg-config --cflags --libs glib-2.0 gdk-2.0 atk gtk+-2.0") -env.Program('dwss', [Glob('*.c'), Glob('*.cc')]) +dwss = env.Program('dwss', [Glob('*.c'), Glob('*.cc')]) + +env.Install(install_dir, dwss) +env.Alias('install', install_dir)