Subject: Re: [Boost-build] Can't get output from the print rule?
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-07-10 11:50:50
>> I'm trying to use the print.jam file to generate a cpp file, so I have:
>> print.output t.cpp ;
>> print.text "hello" ;
>> In my custom rule, but no file t.cpp is ever created. If I leave out the
>> print.output part then I do see output to console though.
> It needs to be inside a rule:
> rule generate-source ( target : sources * : properties * )
> print.output $(target) ;
> print.text "hello" ;
> make t.cpp : : @generate-source ;
> I'll write some documentation for this.
I've sort of got this working now, but I had to define a new feature in
order to get the text of the file passed into the generate-source rule, is
there an easier way?
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