From 019c0ad899c88a3ed2bdf0d72c578e680f66f82f Mon Sep 17 00:00:00 2001 From: Kristian Koehntopp Date: Thu, 27 Feb 2014 14:06:00 +0100 Subject: [PATCH] added install target --- SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 54309b2..4ea7183 100755 --- a/SConstruct +++ b/SConstruct @@ -10,8 +10,14 @@ if platform == 'darwin': env.Append(CPPFLAGS=['-Ddarwin']) # Compile the programs -env.Program(target = './pkt2flow', +pkt2flow = env.Program(target = './pkt2flow', source = Glob('./*.c'), LIBPATH = lib_path, LIBS = libs, CPPPATH = cpp_path) + +# install the program +env.Install(dir = "/usr/local/bin", source = pkt2flow) + +# create an install alias +env.Alias('install', ['/usr/local/bin'])