INCLUDES = $(TOOLBAR_EDITOR_CFLAGS) \
-DCURSOR_DIR=\"$(pkgdatadir)\"
-BUILT_SOURCES = eggmarshalers.c eggmarshalers.h
-
noinst_LTLIBRARIES = libtoolbareditor.la
libtoolbareditor_la_SOURCES = \
egg-toolbars-model.c \
egg-editable-toolbar.c \
egg-toolbar-editor.c \
- egg-marshal.c
+ egg-marshal.c \
+ eggmarshalers.c
noinst_HEADERS = \
egg-toolbars-model.h \
egg-editable-toolbar.h \
- egg-toolbar-editor.h
+ egg-toolbar-editor.h \
+ eggmarshalers.h
+
+BUILT_SOURCES = eggmarshalers.h eggmarshalers.c
eggmarshalers.h: eggmarshalers.list
- cd $(srcdir) \
- && $(GLIB_GENMARSHAL) --prefix=_egg_marshal eggmarshalers.list --header > xgen-emh \
- && cp xgen-emh eggmarshalers.h \
- && rm -f xgen-emh xgen-emh~
+ $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header > eggmarshalers.h
eggmarshalers.c: eggmarshalers.list
- cd $(srcdir) \
- && $(GLIB_GENMARSHAL) --prefix=_egg_marshal eggmarshalers.list --body > xgen-emc \
- && cp xgen-emc eggmarshalers.c \
- && rm -f xgen-emc xgen-emc~
+ echo '#include "eggmarshalers.h"' > eggmarshalers.c
+ $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --body >> eggmarshalers.c
egg-marshal.c: eggmarshalers.c eggmarshalers.h