On 8 Nov 2007, at 19:41, Chris wrote: > I am using Codeblocks on a project using FLTK and Fluid. I have it > setup to compile the fluid file in a prebuild step. The problem > is, it compiles everytime even though the timestamps on the .cxx > and .hh files are already greater than the timestamp on the .fl > file. I don't want it to waste time creating new .cxx and .hh > files if they are already up to date. This causes gcc to recompile > them on every compile because of the new timestamp. > > Is there any way around this? I assume that I may need to create > a .bat file. If so, does anyone have a DOS example of > conditionally running a command based on comparing timestamps?
I don't know Codeblocks, but I thought it was just an IDE wrapper for mingw/gcc. Presumably it generates some sort of Makefile to run the actual build? In any case, it sounds like your dependency checking isn't working, so you need to figure out how that is supposed to be set up and then it should just work. I can't imagine why anybody would want to use a DOS batch file to help with the job - proper tools (i.e. ones derived form the wealth of knowledge that became unix) work better, and for good reasons. See here: http://www.fltk.org/articles.php?L598 and: http://www.fltk.org/articles.php?L599 for some articles that may help you on the road to enlightenment. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

