I want scons to always install the built file in several additional directories.
I created the usual install builder with alias a shown in user manual and it installs correctly when I use scons install
but I prefer it to run automatically after the target is built and I cannot figure out how to specify the dependencies.
Target = Program(...)
Env.Alias('install', Env.Install(FinalDir, Target))
Should the target depend on install or vice versa or should I use something else?
I went the wrong way of defining install
target and trying to figure out how to run it automatically.
I solved it by aliasing the Install builder to the real file names I wanted to install instead of install
.
Env.Alias('/some/dir/filename', Env.Install('/some/dir', Target))