> 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.

As far as I can tell, Codeblocks does not use makefiles.  I am using GCC but I 
think Codeblocks uses its own build method.  I realize I could create my own 
makefile but I really don't want to go through that headache.

Also I am not saying I want to use DOS.  My preferred method would be to pass a 
flag on the commandline to fluid.exe to have it check timestamps between the 
.fl file and the generated source and header files before deciding to update 
the timestamps (which causes them to be recompiled when in actuality nothing 
changed).  Maybe there is a command line option?

Maybe I should modify fluid myself to do this with the hope it can get included 
in future versions.  Wouldn't this feature make sense for IDE's that do not use 
makefiles?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to