Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-17 03:01:33


On Monday 17 July 2006 02:51, Chris Weed wrote:

> > Taking a look at http://tinyurl.co.uk/e8px, it looks like the make rule
> > is a shorthand for creating a Jam rule that executes an action. Anything
> > that is contained in an action is executed by the command shell of the OS
> > you are building with, so cygwin and Windows use cmd.exe and Linux uses
> > sh or a derivative.
> >
> > Thus, you would want something that looks like this:
> >
> > actions automake
> > {
> > cd $(<)
> > ./configure
> > make
> > }
> >
> > make fftw : /usr/path/to/fftw : @automake ;
> > make zlib : /usr/path/to/zlib : @automake ;
> >
> > NOTE: I haven't used BBv2 on Linux/Mac, so the above example may
> > not work. Also, as it stands, it will not work on cygwin/Windows.
>
> Thanks,
> I tried that, but it seems to think the make command is the same as
> the make rule, and gives me an error about recursion:
> error: Recursion in main target references
> error: the following target are being built currently:
> error: ./fftw ./fftw

The above example cannot produce such error. It's only possible that you've
used a target name in its own sources.

> Is there a way around this?

Unless you'll spot any error in your Jamfiles, send a complete archived
example which reproduces this problem.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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