Boost logo

Boost-Build :

Subject: Re: [Boost-build] using "build-project"
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2015-07-17 21:08:23


On 17/07/15 06:14 PM, Stefan Seefeld wrote:
> On 17/07/15 06:08 PM, Steven Watanabe wrote:
>> AMDG
>>
>> On 07/17/2015 03:00 PM, Stefan Seefeld wrote:
>>> In my Jamfile I use
>>>
>>> build-project tutorial
>>> build-project reference
>>>
>>> with two subprojects in tutorial/ and reference/. Each of those contains
>>> its own Jamfile, and running bjam in those subdirectories will generate
>>> a local html/ directory.
>>>
>>> However, if I execute bjam in the toplevel directory, I get a single
>>> ./html/ directory with output of both subprojects on top of each other
>>> (and of course, a single index.html file corresponding to the last
>>> subproject being built).
>>>
>>> What am I doing wrong ? How can I force the two html/ directories to be
>>> generated within tutorial/ and reference/, even if the build process is
>>> invoked from the toplevel directory ?
>>>
>> You're not doing anything wrong. This is
>> a "feature" of the boostbook toolchain that's
>> difficult to fix because the existing
>> documentation build relies on it.
> Hmm, so how can I have a project structure like the one I describe (with
> two subdirectories each having their own quickbook document) and a
> toplevel Jamfile to build them both into two distinct output directories ?

FWIW, I have figured out how to hack what I want:

In the toplevel Jamfile, I define

  path-constant here : . ;

Then, in the two sub-projects' Jamfiles I use

      <format>html:<name>$(here)/html/reference

and

    <format>html:<name>$(here)/html/tutorial

which will always result in the output to be generated in

  $(toplevel)/html/reference
  $(toplevel)/html/tutorial

Thanks for your help,

        Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...

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