Angus Leeming <[EMAIL PROTECTED]> writes:

> Well, given that these are generated files, it should be easy enough to fix
> them. Fancy putting together a patch?

The _moc.C files are generated from .h files that in turn are generated
form .ui files that I don't grok (is it XML?).

So, you will not like my patch (pasted at the bottom). Given the presence
of '\n', that would force the use of GNU sed, but it could also be done
using ed with an HERE script.

--
Enrico


diff -uNr qt2.orig/moc/Makefile.in qt2/moc/Makefile.in
--- qt2.orig/moc/Makefile.in    2006-02-13 02:06:16.000000000 +0100
+++ qt2/moc/Makefile.in 2006-02-15 13:39:02.000000000 +0100
@@ -785,6 +785,8 @@
 
 %_moc.C: $(srcdir)/../%.h
        $(MOC) -o $@ $<
+       sed '/#undef QT_NO_COMPAT/s/QT_NO_COMPAT/QT_NO_COMPAT\n#include 
<config.h>/' $@ > [EMAIL PROTECTED]
+       mv -f [EMAIL PROTECTED] $@
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
diff -uNr qt2.orig/ui/moc/Makefile.in qt2/ui/moc/Makefile.in
--- qt2.orig/ui/moc/Makefile.in 2006-02-13 02:06:16.000000000 +0100
+++ qt2/ui/moc/Makefile.in      2006-02-15 13:41:06.000000000 +0100
@@ -794,6 +794,8 @@
 
 %_moc.C: ../%.h
        $(MOC) -o $@ $<
+       sed '/#undef QT_NO_COMPAT/s/QT_NO_COMPAT/QT_NO_COMPAT\n#include 
<config.h>/' $@ > [EMAIL PROTECTED]
+       mv -f [EMAIL PROTECTED] $@
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:



Reply via email to