Boost logo

Boost-Build :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2006-07-16 18:51:46


On 7/16/06, Reece Dunn <msclrhd_at_[hidden]> wrote:
> Chris Weed wrote:
> > On 7/16/06, Reece Dunn <msclrhd_at_[hidden]> wrote:
> > > Chris Weed wrote:
> > > > Is there a way I can make a Jamfile for a library that just calls
> > > > configure and make on that library? For example I want to add a
> > > > Jamfile to my copy of fftw that will build it with configure and make.
> > > There is support for a make rule in BBv2, so you could use that :). I am
> > > not sure how it is used, not having used it myself, but the documentation
> > > (http://www.boost.org/boost-build2) should help.
> > > If that doesn't work, you can create a custom Jam rule/action (again, see
> > > the documentation for details) that would do this.
> >
> > The make rule doesn't seem to correspond to Unix make. The closest I
> > could find was the example where the program pkg-config is launched to
> > create cxx-flags and link-flags. I am not familiar with this program,
> > so I am not sure I could replace this with configure/make.
>
> 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

Is there a way around this?

Chris


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