scons - always install after build

后端 未结 2 688
生来不讨喜
生来不讨喜 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条回答
  •  Happy的楠姐
    2021-01-24 02:34

    Your code looks fine. I suspect what you're really asking is you want it to always install the target in FinalDir even if you don't specify 'install' as a command-line arg, i.e. when you just say scons. In that case, check out the Default() method in the man page. You can add your 'install' alias to the set of default targets SCons builds. (The "default default" if you don't change it and don't pass any targets on the command line is everything under the current dir.)

提交回复
热议问题