#
# See http://www.scons.org/wiki/InstallTargets and http://www.scons.org/doc/production/HTML/scons-user/c2938.html
install_include = env.Install (target_usr_local_include, Glob("include/anna/*"))
-install_lib = env.Install (target_usr_local_lib, Glob("source/*/" + variant + "/*.a"))
+static_lib_files = 'source/*/' + variant + '/*.a'
+dynamic_lib_files = 'source/*/' + variant + '/*.so'
+files_grabbed = [Glob(e) for e in [static_lib_files, dynamic_lib_files]]
+
+install_lib = env.Install (target_usr_local_lib, files_grabbed)
install_dynlib = env.Install (target_usr_local_lib, Glob("dynamic/launcher/default/" + variant + "/*.so"))
install_example = env.Install (target_opt_bin, Glob("example/*/*/" + variant + "/example_*"))
postinstall_example = env.Command('./example/postinstall.out', None, './example/postinstall.sh')