Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to get install to copy a file?
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-06-22 07:42:35


On 6/22/2015 2:21 PM, Paul A. Bristow wrote:
> I've wanted to copy a .css file to the /doc/html directory of a library.
>
> Rather than doing this by hand (because it is sometimes necessary to delete the contents of the
> doc/html to remove obsolete stuff generated by doxygen), I've tried (and as usual failed) to do this
> using bjam.
>
> Amongst many other things, I've tried a jamfile containing just
>
> install cssinstall : quickdox.css : <location>html ;
> explicit cssinstall ;
>
> also tried
>
> install cssinstall : quickdox.css : <install-type>CSS <location>html <name>quickdox.css ;
> explicit cssinstall ;
>
> I:\modular-boost\libs/my_library\doc>b2 -a
>
> ...found 1 target...
>
> but no file is copied :-(

Looking at documentation of 'explicit', I see:

        http://www.boost.org/build/doc/html/bbv2/reference/rules.html

        The explicit rule takes a single parameter—a list of target names. The named targets will be marked
        explicit, and will be built only if they are explicitly requested on the command line, or if their
        dependents are built. Compare this to ordinary targets, that are built implicitly when their
         containing project is built.

So, you've asked Boost.Build not to build 'cssinstall' unless you specify it on the command line,
or request it somewhere else, and for all I see, you do *not* specify it explicitly anywhere?

Does adding 'cssinstall' to command line change things?

> -d5 sends it into a paroxysm of output :-(

The --debug-building option is often more helpful.

- Volodya


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