]> git.meshlink.io Git - catta/commitdiff
gobject: clean up compiler output
authorOlivier CrĂȘte <thetester@gmail.com>
Fri, 25 Jun 2010 00:17:20 +0000 (02:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Jun 2010 00:17:20 +0000 (02:17 +0200)
avahi-gobject/Makefile.am

index b2a09c753ed66559a76d9198d8b43b329f46d0fe..93ca2f31bd1ec90bba2c1cde276716bc0bdc8cb2 100644 (file)
@@ -88,7 +88,7 @@ signals-marshal.h: signals-marshal.list
        $(AM_V_GEN)glib-genmarshal --header --prefix=_ga_signals_marshal $< > $@
 
 signals-marshal.c: signals-marshal.list
-       $(AM_V_GEN)glib-genmarshal --body --prefix=_ga_signals_marshal $< > $@
+       $(AM_V_GEN)(echo "#include \"signals-marshal.h\"" ; glib-genmarshal --body --prefix=_ga_signals_marshal $< ) > $@
 
 
 # rules for making the glib enum objects
@@ -102,7 +102,7 @@ signals-marshal.c: signals-marshal.list
 
 %-enumtypes.c: %.h Makefile.in
        $(AM_V_GEN)glib-mkenums \
-       --fhead "#include <$*.h>" \
+       --fhead "#include <$*.h>\n#include<$*-enumtypes.h>" \
        --fprod "\n/* enumerations from \"@filename@\" */" \
        --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
        --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \