aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libemail-engine/Makefile.am')
-rw-r--r--libemail-engine/Makefile.am17
1 files changed, 12 insertions, 5 deletions
diff --git a/libemail-engine/Makefile.am b/libemail-engine/Makefile.am
index 103a9d530f..5589fe4e73 100644
--- a/libemail-engine/Makefile.am
+++ b/libemail-engine/Makefile.am
@@ -2,11 +2,13 @@ NULL =
privsolib_LTLIBRARIES = libemail-engine.la
-include $(top_srcdir)/glib-gen.mak
-glib_enum_headers=e-mail-enums.h
-glib_enum_output=e-mail-enumtypes
-glib_enum_define=E_MAIL
-glib_enum_prefix=e_mail
+ENUM_TYPES = e-mail-enums.h
+
+e-mail-enumtypes.h: e-mail-enumtypes.h.template $(ENUM_TYPES)
+ $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template e-mail-enumtypes.h.template $(ENUM_TYPES)) > $@
+
+e-mail-enumtypes.c: e-mail-enumtypes.c.template $(ENUM_TYPES)
+ $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template e-mail-enumtypes.c.template $(ENUM_TYPES)) > $@
ENUM_GENERATED = e-mail-enumtypes.h e-mail-enumtypes.c
@@ -74,6 +76,11 @@ BUILT_SOURCES = $(ENUM_GENERATED)
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(pkgconfig_DATA)
+EXTRA_DIST = \
+ e-mail-enumtypes.h.template \
+ e-mail-enumtypes.c.template \
+ $(NULL)
+
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)