aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Makefile.am
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-04-12 15:50:06 +0800
committerMilan Crha <mcrha@redhat.com>2013-04-12 15:50:06 +0800
commit1c5f6313c58187ce7682058057b63e14ae6f70e5 (patch)
treeb32502d72fe77f9e42e47b89df5e9034b92b9546 /shell/Makefile.am
parent765a50d3df2d53b73b149fc2646f46722add7635 (diff)
downloadgsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.gz
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.tar.zst
gsoc2013-evolution-1c5f6313c58187ce7682058057b63e14ae6f70e5.zip
Bug #681837 - Make enum type registration thread safe
Diffstat (limited to 'shell/Makefile.am')
-rw-r--r--shell/Makefile.am15
1 files changed, 9 insertions, 6 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 355ec69fad..d36547e609 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -8,11 +8,16 @@ eshellincludedir = $(privincludedir)/shell
ENUM_TYPES = e-shell.h
-e-shell-enumtypes.h: e-shell-enumtypes.h.template $(ENUM_TYPES)
- $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template e-shell-enumtypes.h.template $(ENUM_TYPES)) > $@
+e-shell-enumtypes.h: $(top_srcdir)/enumtypes.h.template $(ENUM_TYPES)
+ $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.h.template \
+ --fhead "#ifndef E_SHELL_ENUMTYPES_H\n#define E_SHELL_ENUMTYPES_H\n" \
+ --ftail "#endif /* E_SHELL_ENUMTYPES_H */\n" \
+ $(ENUM_TYPES)) > $@
-e-shell-enumtypes.c: e-shell-enumtypes.c.template $(ENUM_TYPES)
- $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template e-shell-enumtypes.c.template $(ENUM_TYPES)) > $@
+e-shell-enumtypes.c: $(top_srcdir)/enumtypes.c.template $(ENUM_TYPES)
+ $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.c.template \
+ --fhead "#include \"e-shell-enumtypes.h\"" \
+ $(ENUM_TYPES)) > $@
ENUM_GENERATED = e-shell-enumtypes.h e-shell-enumtypes.c
@@ -165,8 +170,6 @@ errordir = $(privdatadir)/errors
EXTRA_DIST = \
evo-version.h.in \
- e-shell-enumtypes.h.template \
- e-shell-enumtypes.c.template \
shell.error.xml \
evolution-icon.rc \
evolution.ico \