|
Boost-Build : |
Subject: Re: [Boost-build] how to invoke custom rule explicit on install
From: å×ÇÅÎÉÊ ûÕÂÉÎ (shubin_evgeniy_at_[hidden])
Date: 2010-03-22 09:21:57
I have a custom rule in Jamroot:
rule your-install ( DAEMON_NAME )
{
...
}
.
In Jamfile of subproject I invoke this rule :
exe harvester_master
: HarvesterMaster.cpp harvester_master.cpp HarvesterMasterSettings.cpp
../common
../..//boost_program_options ../..//boost_regex ../..//boost_system ../..//boost_filesystem
../..//boost_thread
../..//mysqlclient_r ../..//xmlrpc ../..//xmlrpc++ ../..//xmlrpc_server_abyss
../..//xmlrpc_server ../..//xmlrpc_server++ ../..//xmlrpc_server_abyss++ ../..//xmlrpc_xmlparse
../..//xmlrpc_xmltok ../..//iconv
: <include>../../include/harvester_master
;
modules.poke $(JAMROOT) : DAEMON_NAME : harvester_master ;
your-install harvester_master ;
.
It works fine. But this rule is invoked every time I type bjam.
I need it be invoked only on bjam install.
How can I use explicit rule for explicit call of rule your-install?
How can I use alias rule to rename your-install to install?
Mon, 22 Mar 2010 14:50:48 +0300 ÐÉÓØÍÏ ÏÔ Vladimir Prus <vladimir_at_[hidden]>:
> å×ÇÅÎÉÊ ûÕÂÉÎ wrote:
>
> > I have a custom rule. I want it to be invoked only when I type bjam install in command line.
>
> Could you show the code? I assume you have a metatarget that should only be built as part of
> install? Then:
>
> whatever your-metargets : ... ;
> expicit whatever ;
>
> install dist : .... whatever ;
>
> should do the desired effect.
>
> - Volodya
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk