scons - always install after build

后端 未结 2 689
生来不讨喜
生来不讨喜 2021-01-24 01:56

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 co

2条回答
  •  死守一世寂寞
    2021-01-24 02:12

    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))
    

提交回复
热议问题