Scons - always install after build

I want scons to always install the embedded file in several additional directories.

I created a regular installation constructor with an alias shown in the user guide, and it installs correctly when I use it scons install, but I prefer it to start automatically after creating the target, and I cannot figure out how to specify the dependencies.

Target = Program(...)
Env.Alias('install', Env.Install(FinalDir, Target))

If the goal is installation dependent or vice versa or should I use something else?

+1
source share
2 answers

I didn’t go how to determine the goal installand try to figure out how to start it automatically.

, , , install.

Env.Alias('/some/dir/filename', Env.Install('/some/dir', Target))
0

. , , FinalDir, "" , .. scons. Default() man. 'install' , SCons. ( " ", - , .)

+1

All Articles