|
Boost : |
From: Paul Hamilton (paul_at_[hidden])
Date: 2003-08-08 09:31:56
I have a need to generate header files which are then subsequently used
in a source file and built.
If i have a file called "xxx.y", which is used as an input to a program
to generate "xxx.hpp", and "xxx.hpp" is included in "xxx.cpp" I should
(I thought) be able to do something like this:
rule Tangle
{
DEPENDS $(<) : $(>) ;
}
actions Tangle
{
tanglemyfile $(<) $(>)
}
Tangle xxx.hpp : xxx.y ;
CPP_SOURCES = xxx.cpp ;
lib mylib : $(CPP_SOURCES).cpp
: <sysinclude>$(PROJECT_ROOT) <sysinclude>$(BOOST_ROOT)
: debug release
;
But when I try all of this in my jamfile, as much as I touch xxx.y,
xxx.hpp is never being asked to rebuild. basically the "actions" is
never executed.
What's the right way to do this?
Paul.
---------------------
Paul Hamilton
pHamtec P/L - Software Makers
http://www.phamtec.com/
mailto:paul_at_[hidden]
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.
-----------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk