Boost logo

Boost-Build :

From: Renaud Lepere (renaud.lepere_at_[hidden])
Date: 2006-01-26 05:37:52

> > > I would like to be able to run a perl script that
> converts binary files
> > > (images, in this case) into source files you can include in your
> > > project. I'd rather not introduce new target types for
> each extension.
> > > What's the best way to go about this?
> > The 'make' rule.
> Could you please give an example of how to use the make rule
> to run an external
> script on some src file to create a target?

I had a similar problem as you recently, i needed to generate an svnrev.h
file with an external tool called svnrev. Here is the solution

make svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h : svnrev ;
actions svnrev
         svnrev -o$(<) $(>)
I found a little documentation on the 'make' rule here


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