Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Boost-users] [boost-build]how to configure custom targets
From: Sandeep Gupta (gupta.sandeep_at_[hidden])
Date: 2009-01-27 01:40:32


Hi Steven,
 Thanks. I should be able to fix it using this info. However I have hit
another, but somewhat related, roadblock. Tried the documentation but
failed to find relevant snippets.

Using generators i have created these two custom rules
1) mp a : a.gp ;
            which converts a.gp to a.mp
2) mps a : a.mp
            which converts a.mp to a.mps

Invoking bjam complains "unable to find target a.mp". The problem is that I
am unable to specify that "a.mp is generated by rule 1".
In case i am missing something obvious please point me to relevant portion
of the documentation.

Thanks
sandeep

On Mon, Jan 26, 2009 at 7:33 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
> Sandeep Gupta wrote:
>
>> I am trying to roll out my own main target (essentially to create plots
>> using gnuplots). The tutorial example/customization was helpful and
>> modifications at appropriate places does the required job.
>>
>> However the output-file is generated on "bin/gcc-4.2/debug". How can I
>> change this so that it outputs to plots/ subdirectory.
>>
>
> Use the <location> property.
>
> My second concern is that bjam executes the rule even if the end target
>> is up-to-date. How to fix this.
>>
>
> bjam should only update targets that are out of date.
> use
> bjam -d+12 ...
> to see the dependency graph.
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> 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