Patch for KDE4Macros to use extra target on Windows

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Jul 19 21:17:22 CEST 2008


Thiago Macieira schrieb:
> Matthias Kretz wrote:
>> - With that make does what I want: execute automoc4 once per target on
>> every call to make. If automoc4 decides there's nothing to do it
>> doesn't touch any files and so make decides not to recompile the output
>> file of automoc4.
> 
> So you have basically the rule:
> 
> target: source
> 	automoc4 -o target source
> 
> and even if automoc4 is run, mtime(source) < mtime(target) ?
> 
> Since I don't think that makes sense, I must have misunderstood.
> 
> Also note that Windows has a 2-second resolution for mtimes. One second 
> after may produce the same timestamp.
> 
Here the log:

Mo, Mai 19 2008 20:34:57           temp_automoc.cpp.files
Mo, Mai 19 2008 20:34:57         temp_automoc.cpp
automoc called
automoc exited
Mo, Mai 19 2008 20:33:43         CMakeFiles\temp.dir\flags.make
Mo, Mai 19 2008 21:23:26         temp_automoc.cpp
Mo, Mai 19 2008 20:50:46       CMakeFiles\temp.dir\temp_automoc.obj


automoc did not touch the file - the timestmp for temp_automoc.cpp after 
"automoc called" is just an internal timestamp - it's neither mtime nor 
atime nor any other one.


Christian


More information about the Kde-buildsystem mailing list