xed/plugins/filebrowser/Makefile.am

98 lines
3.2 KiB
Makefile
Raw Normal View History

2011-11-07 13:46:58 -06:00
# filebrowser
2011-11-07 16:52:18 -06:00
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
2011-11-07 13:46:58 -06:00
INCLUDES = \
-I$(top_srcdir) \
2011-11-07 16:52:18 -06:00
$(PLUMA_CFLAGS) \
2011-11-07 13:46:58 -06:00
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS)
BUILT_SOURCES = \
2011-11-07 16:52:18 -06:00
pluma-file-browser-enum-types.h \
pluma-file-browser-enum-types.c \
pluma-file-browser-marshal.h \
pluma-file-browser-marshal.c
2011-11-07 13:46:58 -06:00
plugin_LTLIBRARIES = libfilebrowser.la
NOINST_H_FILES = \
2011-11-07 16:52:18 -06:00
pluma-file-bookmarks-store.h \
pluma-file-browser-store.h \
pluma-file-browser-view.h \
pluma-file-browser-widget.h \
pluma-file-browser-error.h \
pluma-file-browser-utils.h \
pluma-file-browser-plugin.h \
pluma-file-browser-messages.h
2011-11-07 13:46:58 -06:00
libfilebrowser_la_SOURCES = \
$(BUILT_SOURCES) \
2011-11-07 16:52:18 -06:00
pluma-file-bookmarks-store.c \
pluma-file-browser-store.c \
pluma-file-browser-view.c \
pluma-file-browser-widget.c \
pluma-file-browser-utils.c \
pluma-file-browser-plugin.c \
pluma-file-browser-messages.c \
2011-11-07 13:46:58 -06:00
$(NOINST_H_FILES)
libfilebrowser_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
2011-11-07 16:52:18 -06:00
libfilebrowser_la_LIBADD = $(PLUMA_LIBS)
2011-11-07 13:46:58 -06:00
# UI files (if you use ui for your plugin, list those files here)
2011-11-07 16:52:18 -06:00
uidir = $(PLUMA_PLUGINS_DATA_DIR)/filebrowser
ui_DATA = pluma-file-browser-widget-ui.xml
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
plugin_in_files = filebrowser.pluma-plugin.desktop.in
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
%.pluma-plugin: %.pluma-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
2011-11-07 16:52:18 -06:00
pluma-file-browser-enum-types.h: pluma-file-browser-enum-types.h.template $(NOINST_H_FILES) $(GLIB_MKENUMS)
(cd $(srcdir) && $(GLIB_MKENUMS) --template pluma-file-browser-enum-types.h.template $(NOINST_H_FILES)) > $@
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
pluma-file-browser-enum-types.c: pluma-file-browser-enum-types.c.template pluma-file-browser-enum-register.c.template $(NOINST_H_FILES) $(GLIB_MKENUMS)
2011-11-07 13:46:58 -06:00
$(AM_V_GEN) (cd $(srcdir) && \
2011-11-07 16:52:18 -06:00
$(GLIB_MKENUMS) --template pluma-file-browser-enum-types.c.template $(NOINST_H_FILES) && \
$(GLIB_MKENUMS) --template pluma-file-browser-enum-register.c.template $(NOINST_H_FILES)) > $@
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
pluma-file-browser-marshal.h: pluma-file-browser-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=pluma_file_browser_marshal > $@
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
pluma-file-browser-marshal.c: pluma-file-browser-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) echo "#include \"pluma-file-browser-marshal.h\"" > $@ && \
$(GLIB_GENMARSHAL) $< --body --prefix=pluma_file_browser_marshal >> $@
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin)
2011-11-07 13:46:58 -06:00
2013-01-24 14:05:58 -06:00
@INTLTOOL_XML_NOMERGE_RULE@
gsettings_SCHEMAS = org.mate.pluma.plugins.filebrowser.gschema.xml
@GSETTINGS_RULES@
%.gschema.xml.in: %.gschema.xml.in.in Makefile
$(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
2011-11-07 13:46:58 -06:00
EXTRA_DIST = \
$(ui_DATA) \
$(plugin_in_files) \
2013-01-24 14:05:58 -06:00
$(gsettings_SCHEMAS_in_in) \
2011-11-07 16:52:18 -06:00
pluma-file-browser-enum-types.h.template \
pluma-file-browser-enum-types.c.template \
pluma-file-browser-enum-register.c.template \
pluma-file-browser-marshal.list
2011-11-07 13:46:58 -06:00
CLEANFILES = \
$(plugin_DATA) \
2013-01-24 14:05:58 -06:00
$(gsettings_SCHEMAS_in) \
$(gsettings_SCHEMAS) \
2011-11-07 13:46:58 -06:00
$(BUILT_SOURCES)
DISTCLEANFILES = \
$(plugin_DATA) \
2013-01-24 14:05:58 -06:00
$(gsettings_SCHEMAS_in) \
$(gsettings_SCHEMAS) \
2011-11-07 13:46:58 -06:00
$(BUILT_SOURCES)
-include $(top_srcdir)/git.mk