2011-11-07 13:46:58 -06:00
|
|
|
# Spell checker plugin
|
2016-02-04 03:20:42 -06:00
|
|
|
plugindir = $(XED_PLUGINS_LIBS_DIR)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2013-08-02 17:08:36 -05:00
|
|
|
AM_CPPFLAGS = \
|
2011-11-07 13:46:58 -06:00
|
|
|
-I$(top_srcdir) \
|
2016-02-04 03:20:42 -06:00
|
|
|
$(XED_CFLAGS) \
|
2011-11-07 13:46:58 -06:00
|
|
|
$(ENCHANT_CFLAGS) \
|
|
|
|
$(WARN_CFLAGS) \
|
2016-12-26 18:12:05 -06:00
|
|
|
$(DISABLE_DEPRECATED_CFLAGS)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed-spell-marshal.c \
|
|
|
|
xed-spell-marshal.h
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
plugin_LTLIBRARIES = libspell.la
|
|
|
|
|
|
|
|
libspell_la_SOURCES = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed-spell-plugin.c \
|
|
|
|
xed-spell-plugin.h \
|
|
|
|
xed-spell-checker.c \
|
|
|
|
xed-spell-checker.h \
|
|
|
|
xed-spell-checker-dialog.c \
|
|
|
|
xed-spell-checker-dialog.h \
|
|
|
|
xed-spell-checker-language.c \
|
|
|
|
xed-spell-checker-language.h \
|
|
|
|
xed-spell-language-dialog.c \
|
|
|
|
xed-spell-language-dialog.h \
|
|
|
|
xed-automatic-spell-checker.c \
|
|
|
|
xed-automatic-spell-checker.h \
|
|
|
|
xed-spell-utils.c \
|
|
|
|
xed-spell-utils.h \
|
2016-12-26 18:12:05 -06:00
|
|
|
$(BUILT_SOURCES)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-12-26 18:12:05 -06:00
|
|
|
libspell_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
|
2016-02-04 03:20:42 -06:00
|
|
|
libspell_la_LIBADD = $(XED_LIBS) $(ENCHANT_LIBS)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
uidir = $(XED_PLUGINS_DATA_DIR)/spell
|
|
|
|
ui_DATA = spell-checker.ui languages-dialog.ui xed-spell-setup-dialog.ui
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed-spell-marshal.h: xed-spell-marshal.list $(GLIB_GENMARSHAL)
|
|
|
|
$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=xed_marshal > $@
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed-spell-marshal.c: xed-spell-marshal.list $(GLIB_GENMARSHAL)
|
|
|
|
$(AM_V_GEN) echo "#include \"xed-spell-marshal.h\"" > $@ && \
|
|
|
|
$(GLIB_GENMARSHAL) $< --body --prefix=xed_marshal >> $@
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-12-26 18:12:05 -06:00
|
|
|
plugin_in_files = spell.plugin.desktop.in
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-12-26 18:12:05 -06:00
|
|
|
%.plugin: %.plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-12-26 18:12:05 -06:00
|
|
|
plugin_DATA = $(plugin_in_files:.plugin.desktop.in=.plugin)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2015-11-12 04:45:00 -06:00
|
|
|
@INTLTOOL_XML_NOMERGE_RULE@
|
2016-01-25 08:13:49 -06:00
|
|
|
spell_gschema_in = org.x.editor.plugins.spell.gschema.xml.in
|
2015-11-12 04:45:00 -06:00
|
|
|
gsettings_SCHEMAS = $(spell_gschema_in:.xml.in=.xml)
|
|
|
|
@GSETTINGS_RULES@
|
|
|
|
|
|
|
|
|
2011-11-07 13:46:58 -06:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(ui_DATA) \
|
|
|
|
$(plugin_in_files) \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed-spell-marshal.list \
|
2015-11-12 04:45:00 -06:00
|
|
|
$(spell_gschema_in)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2015-11-12 04:45:00 -06:00
|
|
|
CLEANFILES = $(BUILT_SOURCES) $(plugin_DATA) $(gsettings_SCHEMAS)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
cd $(distdir); rm -f $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
-include $(top_srcdir)/git.mk
|