diff options
Diffstat (limited to 'filter/Makefile.am')
-rw-r--r-- | filter/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/filter/Makefile.am b/filter/Makefile.am index bf17f89614..3f8e3ed165 100644 --- a/filter/Makefile.am +++ b/filter/Makefile.am @@ -69,9 +69,17 @@ libfilter_la_SOURCES = \ vfolder-rule.c \ vfolder-rule.h +libfilter_la_DEPENDENCIES = libfilter-i18n.h + EXTRA_DIST = filtertypes.xml vfoldertypes.xml \ - filter.glade + filter.glade filter.glade.h libfilter-i18n.h # basic rules. filterdir = $(datadir)/evolution filter_DATA = filtertypes.xml vfoldertypes.xml + +libfilter-i18n.h: filtertypes.xml vfoldertypes.xml + echo "/* Automatically generated. Do not edit. */" > $@; \ + cat $(srcdir)/filtertypes.xml $(srcdir)/vfoldertypes.xml | \ + sed -n -e 's:.*<title>\(.*\)</title>:char *s = N_("\1");:p' | \ + sort -u >> $@ |