From: Francesco M. <f18...@ya...> - 2005-09-22 12:19:21
|
Hi, Joseph Blough wrote: > I've almost got the databaselayer component working with Bakefile, but > I'm having problems running the perl script that generates the unit > tests. The line that needs to be run is: > > cxxtestgen.pl -o tests_firebird.cpp MyTest.h > > and I tried wrapping it in an action module like > > <action id="tests_firebird.cpp"> > <command>cxxtestgen.pl -o tests_firebird.cpp MyTest.h</command> > </action> yes, this is how to do it; the only suspect thing is the id of the <action> tag: in this way it would create a target in makefiles named "tests_firebird.cpp"; I think this could give some problem to bakefile... see below > but when I try to call the target through > > <depends>tests_firebird.cpp</depends> I'm not sure to understand what do you mean by "I try to call the target through": where did you put that <depends> tag ? I suggest you to use the <depends-on-file> tag instead. I cannot see any bakefile in the "databaselayer" folder of my wxCode repository; if you commit them to the CVS I can give you more details... > the following is spit out by GNU make > > No rule to make target `tests_firebird.cpp' how does your GNU makefile looks like ? I think the problem is that <action> tag creates a target which is not exactly named "tests_firebird.cpp" (probably looks like "sub_tests_firebird.cpp"). Francesco Montorsi |