# Terminal Plugin

plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
plugin_PYTHON =		\
	terminal.py

plugin_in_files = terminal.plugin.desktop.in
plugin_DATA = $(plugin_in_files:.desktop.in=)

$(plugin_DATA): $(plugin_in_files)
	$(AM_V_GEN) $(MSGFMT) --keyword=Name --keyword=Description --desktop --template $< -d $(top_srcdir)/po -o $@

metainfodir = $(datadir)/metainfo
metainfo_DATA = pluma-terminal.metainfo.xml
metainfo_in_files = $(metainfo_DATA:=.in)

$(metainfo_DATA): $(metainfo_in_files)
	$(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@

terminal_gschema_in = org.mate.pluma.plugins.terminal.gschema.xml.in
gsettings_SCHEMAS = $(terminal_gschema_in:.xml.in=.xml)
@GSETTINGS_RULES@

EXTRA_DIST = \
	$(metainfo_in_files:=.in) \
	$(plugin_in_files:=.in) \
	$(terminal_gschema_in)

CLEANFILES = \
	$(metainfo_DATA) \
	$(plugin_DATA) \
	$(gsettings_SCHEMAS_in) \
	$(gsettings_SCHEMAS)

DISTCLEANFILES = \
	$(metainfo_in_files) \
	$(plugin_in_files) \
	$(gsettings_SCHEMAS_in) \
	$(gsettings_SCHEMAS)

-include $(top_srcdir)/git.mk
