Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can't get output from the print rule?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-10 09:59:43


John Maddock wrote:
> 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.

In Christ,
Steven Watanabe

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