使用boost-build / bjam,是否可以在install规则完成后执行脚本?
我有一个Jamfile,它定义了一个可执行文件(exe),然后安装它(install)。我想在install步骤之后执行一个脚本。
Jamfile:
exe my_app
: [ glob *.cc ]
: <link>static
;
install .
: my_app
;
{ execute script after install here }我知道我可以执行一个脚本
[ SHELL "path/to/script.sh" ] ;但我不知道如何让install成为执行该脚本的依赖项?
发布于 2014-08-26 23:04:09
您可能可以像描述的那样使用notfile目标。虽然这里没有明确声明,但notfile目标也接受一个依赖项列表,因此您可以将安装目标作为notfile的源传递。
import notfile ;
install install-app : my_app : <location>. ;
notfile . : @post-install : install-app ;
actions post-install
{
echo Install is now done.
}https://stackoverflow.com/questions/25496622
复制相似问题