On Sat, 11 Jul 2009 08:41:47 +0200, Ralf Wildenhues <ralf.wildenh...@gmx.de> writes:
> Hmm; this sounds like we really should get moc authors to output > dependency rules, preferably as a side effect. Ideally it'd support > the -MT -MD -MP -MF flags, with gcc's semantics ... ;-) > Or plain -M, that would be a suitable minimal basis. Okay, I'm implementing this one currently in the moc tool, but even if they accept the patch it will only appear in the next revision of Qt. So how should I handle current version of the moc tool? Should I write a wrapper similar to depcomp which only uses the new -M{T,D,P,F} options if the moc is new enough? Or should I try to do a little bit of investigation in configure time about the moc (I already have version information there) and handle the issue with some substitution trickery in Makefile.in -> Makefile generation time? Any ideas are welcome, Gergely