|
Boost-Build : |
From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-09-29 13:14:00
Zbynek Winkler wrote:
> Sure I can. It then compiles the foo/bar/somefile.ext into somefile.pdf
> but this somefile.pdf will be in the current directory along with
> somefile.aux, somefile.log a possibly others :(
I see no problem here.
generators.register-standard foo.step1 : FOO : BAR : <toolset>foo ;
generators.register-standard foo.step2 : BAR : PDF : <toolset>foo ;
actions step1
{
tool --step=1 $(>)
}
actions step1
{
tool --step=2 $(>)
}
pdf abc : xyz.foo ;
When you build this the following commands will be executed:
mkdir bin/debug
cd bin/debug
# This will produce xyz.bar and a lot 'junk' files in bin/debug
tool --step=1 ../../xyz.foo
# This will take xyz.bar and a lot 'junk' files from bin/debug
# and produce xyz.pdf from them
tool --step=2 xyz.bar
cd ../..
> It is because these files are generated to the current directory.
If the current directory is 'bin/debug' it is exactly the place where
those files should be created.
> I have not found a way to generate all the files in other than current
> directory. That is why I want to do
It seems we are talking about different current directories. What is
yours? :-)
> in the action. Actually after a sucessfull run I want to grep
> somefile.log for notifications about unresolved references. In that case
> I need to run the tool again (I believe up to 3 times).
Well you always can call the same tool 3 times from single actions block.
Best regards/Venlig hilsen,
Alexey Pakhunov.
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