diff -r 0bddbe7eba51 -r e323e95b88dd gmyth-upnp/src/Makefile.am --- a/gmyth-upnp/src/Makefile.am Wed Jan 10 20:32:11 2007 +0000 +++ b/gmyth-upnp/src/Makefile.am Tue May 22 19:21:42 2007 +0100 @@ -2,9 +2,25 @@ lib_LTLIBRARIES = libgmythupnp.la +BUILT_SOURCES = \ + gmyth_upnp_marshal.c \ + gmyth_upnp_marshal.h + libgmythupnp_la_SOURCES = \ gmyth_upnp.c - + +EXTRA_libgmythupnp_la_SOURCES = gmyth_upnp_marshal.list + +gmyth_upnp_marshal.h: gmyth_upnp_marshal.list + glib-genmarshal --header --prefix=gmyth_upnp_marshal gmyth_upnp_marshal.list > gmyth_upnp_marshal.h.tmp + mv gmyth_upnp_marshal.h.tmp gmyth_upnp_marshal.h + +gmyth_upnp_marshal.c: gmyth_upnp_marshal.list gmyth_upnp_marshal.h + echo "#include \"glib-object.h\"" > gmyth_upnp_marshal.c.tmp + echo "#include \"gmyth_upnp_marshal.h\"" >> gmyth_upnp_marshal.c.tmp + glib-genmarshal --body --prefix=gmyth_upnp_marshal $(srcdir)/gmyth_upnp_marshal.list >> gmyth_upnp_marshal.c.tmp + mv gmyth_upnp_marshal.c.tmp gmyth_upnp_marshal.c + libgmythupnp_la_CFLAGS = \ -DDATADIR=\"$(pkgdatadir)\" \ $(LIBGMYTH_CFLAGS) \