Boost logo

Boost-Build :

Subject: Re: [Boost-build] Running `make` from BB
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-14 12:40:20


AMDG

On 10/14/2016 09:49 AM, Stefan Seefeld wrote:
> On 14.10.2016 11:41, Steven Watanabe wrote:
>>
>> On 10/14/2016 08:42 AM, Stefan Seefeld wrote:
>>>> Most likely, you can just use the "make" target type
>>>> <http://www.boost.org/build/doc/html/bbv2/builtins/raw.html>.
>>> I tried that, by adding the following snippet to doc/Jamfile:
>>>
>>> make html/numpy : numpy : @sphinx ;
>> This says that you are creating a file
>> called html/numpy using the file numpy
>> as the source. You get an error because
>> there isn't a file called numpy.
>
> In fact, what I want to say is "create a 'html/numpy' directory from a
> 'numpy' directory". How do I express that ? (There *is* a 'numpy'
> directory in the source tree, next to the Jamfile containing the above
> lines.)
>

  Ah. Directories aren't accepted as inputs.
Even if they were accepted, it probably wouldn't
correctly update when the sources are modified.
Try globbing the actual source files.

> (A related question: are there any variables I can inspect to identify
> 'source directory', 'build directory', and 'output directory' which the
> above would be relative to ?)
>

  Inside the action block $(>) is the
input file(s) and $(<) is the output file(s).
You can get the directories with $(>:D).

In Christ,
Steven Watanabe


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