Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-08 10:10:30

On 09/07/07 06:48, Larry Evans wrote:
> A simplified Jamfile:
> <--- cut here ---
> obj t1_obj : t1.verbatim ;
> verbatim t1_cpp : t1.verbatim ;
> >--- cut here ---

With this verbatim main target rule, I'd expected a t1_cpp.cpp file to
be produced from the t1.verbatim file using the generator,
verbatim.inline-file. However, --debug-generator showed output:

      *** construct VERBATIM
          from { t1.verbatim.VERBATIM }

so, apparently, the verbatim rule generated by:

import type ;
type.register VERBATIM : verbatim ;

in verbatim.jam has VERBATIM type associated with it instead of the
target type, CPP, in the generator registration:

import generators ;
generators.register-standard verbatim.inline-file : VERBATIM : CPP ;

found also in the verbatim.jam file.

So now the question is, how is a main-target rule defined that will
invoke the verbatim.inline-file action? I tried defining
verbatim.inline-file rule; however, it did nothing.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at