aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--libgnomecanvas/Makefile.am5
-rw-r--r--marshal.mk7
3 files changed, 3 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 133161eae4..aef2f5ee44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1112,10 +1112,6 @@ dnl GObject marshalling
dnl *******************
AM_PATH_GLIB_2_0
-dnl We use AC_SUBST_FILE because AC_SUBST won't deal with newlines
-EVO_MARSHAL_RULE=$srcdir/marshal.mk
-AC_SUBST_FILE(EVO_MARSHAL_RULE)
-
dnl *****************************************************************
dnl Utility macro to set compiler flags for a specific lib.
dnl EVO_SET_COMPILE_FLAGS(VAR-PREFIX, DEPS, EXTRA-CFLAGS, EXTRA-LIBS)
diff --git a/libgnomecanvas/Makefile.am b/libgnomecanvas/Makefile.am
index b1e56371ff..e0719ecfa1 100644
--- a/libgnomecanvas/Makefile.am
+++ b/libgnomecanvas/Makefile.am
@@ -65,12 +65,13 @@ libgnomecanvas_la_SOURCES = \
gnome-canvas.c \
libgnomecanvastypes.c
+include $(top_srcdir)/glib-gen.mak
+glib_enum_prefix=gnome_canvas
+
MARSHAL_GENERATED = \
gnome-canvas-marshal.c \
gnome-canvas-marshal.h
-@EVO_MARSHAL_RULE@
-
libgnomecanvas_la_LIBADD = \
$(top_builddir)/libart_lgpl/libart_lgpl.la \
$(GNOME_PLATFORM_LIBS)
diff --git a/marshal.mk b/marshal.mk
deleted file mode 100644
index 5da83b80ec..0000000000
--- a/marshal.mk
+++ /dev/null
@@ -1,7 +0,0 @@
-%.h: %.list
- ( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $< --header > $@.tmp \
- && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )
-
-%.c: %.list %.h
- ( (echo "#include \"$*.h\""; $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $(srcdir)/$*.list --body) > $@.tmp \
- && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )