Subject: Re: [Boost-build] make more than one target with one custom command
From: Paulo MÃ¡rcio Figueiredo Alves (pauloalves1986_at_[hidden])
Date: 2015-09-29 07:33:37
If you take a look at
64 you will see an example on how to create two targets.
On Tue, Sep 29, 2015 at 5:42 AM Roman Matsybora <matsic_at_[hidden]> wrote:
> I know all the files that will be produced.
> Can you provide example with 2 files generated and then sourced to exe?
> --- ÐÑÑ Ð¾Ð´Ð½Ð¾Ðµ ÑÐ¾Ð¾Ð±ÑÐµÐ½Ð¸Ðµ ---
> ÐÑ ÐºÐ¾Ð³Ð¾: "Steven Watanabe" <watanabesj_at_[hidden]>
> ÐÐ°ÑÐ°: 28 ÑÐµÐ½ÑÑÐ±ÑÑ 2015, 20:29:57
> On 09/28/2015 11:02 AM, Roman Matsybora wrote:
> > In Custom Command section of boost-build documentation there are 3 ways to use custom command: * using make rule
> > * using notfile rule * using generate rule
> > But all of these ways make only one target.
> Actually generate can produce multiple
> targets (as long as you know all the
> files that will be produced). Just
> create a list of all the targets and
> return it from the generating rule.
> > If project has some procedure that generates many source files at once, how can I declare them?
> > Example:
> > program make_sources creates a1.cpp and a2.cpp a1.cpp and a2.cpp are not available before build.
> > main target is exe a : a1.cpp a2.cpp ;
> > How to declare a1.cpp and a2.cpp targets?
> In Christ,
> Steven Watanabe
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
> Unsubscribe & other changes:
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