xed/plugins/filebrowser/Makefile.am

95 lines
3.0 KiB
Makefile
Raw Normal View History

2011-11-07 13:46:58 -06:00
# filebrowser
plugindir = $(XED_PLUGINS_LIBS_DIR)
2011-11-07 13:46:58 -06:00
AM_CPPFLAGS = \
2011-11-07 13:46:58 -06:00
-I$(top_srcdir) \
$(XED_CFLAGS) \
2011-11-07 13:46:58 -06:00
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS)
BUILT_SOURCES = \
xed-file-browser-enum-types.h \
xed-file-browser-enum-types.c \
xed-file-browser-marshal.h \
xed-file-browser-marshal.c
2011-11-07 13:46:58 -06:00
plugin_LTLIBRARIES = libfilebrowser.la
NOINST_H_FILES = \
xed-file-bookmarks-store.h \
xed-file-browser-store.h \
xed-file-browser-view.h \
xed-file-browser-widget.h \
xed-file-browser-error.h \
xed-file-browser-utils.h \
xed-file-browser-plugin.h \
xed-file-browser-messages.h
2011-11-07 13:46:58 -06:00
libfilebrowser_la_SOURCES = \
$(BUILT_SOURCES) \
xed-file-bookmarks-store.c \
xed-file-browser-store.c \
xed-file-browser-view.c \
xed-file-browser-widget.c \
xed-file-browser-utils.c \
xed-file-browser-plugin.c \
xed-file-browser-messages.c \
2011-11-07 13:46:58 -06:00
$(NOINST_H_FILES)
libfilebrowser_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
libfilebrowser_la_LIBADD = $(XED_LIBS)
2011-11-07 13:46:58 -06:00
# UI files (if you use ui for your plugin, list those files here)
uidir = $(XED_PLUGINS_DATA_DIR)/filebrowser
ui_DATA = xed-file-browser-widget-ui.xml
2011-11-07 13:46:58 -06:00
plugin_in_files = filebrowser.plugin.desktop.in
2011-11-07 13:46:58 -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
xed-file-browser-enum-types.h: xed-file-browser-enum-types.h.template $(NOINST_H_FILES) $(GLIB_MKENUMS)
(cd $(srcdir) && $(GLIB_MKENUMS) --template xed-file-browser-enum-types.h.template $(NOINST_H_FILES)) > $@
2011-11-07 13:46:58 -06:00
xed-file-browser-enum-types.c: xed-file-browser-enum-types.c.template xed-file-browser-enum-register.c.template $(NOINST_H_FILES) $(GLIB_MKENUMS)
2011-11-07 13:46:58 -06:00
$(AM_V_GEN) (cd $(srcdir) && \
$(GLIB_MKENUMS) --template xed-file-browser-enum-types.c.template $(NOINST_H_FILES) && \
$(GLIB_MKENUMS) --template xed-file-browser-enum-register.c.template $(NOINST_H_FILES)) > $@
2011-11-07 13:46:58 -06:00
xed-file-browser-marshal.h: xed-file-browser-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=xed_file_browser_marshal > $@
2011-11-07 13:46:58 -06:00
xed-file-browser-marshal.c: xed-file-browser-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) echo "#include \"xed-file-browser-marshal.h\"" > $@ && \
$(GLIB_GENMARSHAL) $< --body --prefix=xed_file_browser_marshal >> $@
2011-11-07 13:46:58 -06:00
plugin_DATA = $(plugin_in_files:.plugin.desktop.in=.plugin)
2011-11-07 13:46:58 -06:00
2013-01-24 14:05:58 -06:00
@INTLTOOL_XML_NOMERGE_RULE@
2016-01-25 08:13:49 -06:00
filebrowser_gschema_in = org.x.editor.plugins.filebrowser.gschema.xml.in
gsettings_SCHEMAS = $(filebrowser_gschema_in:.xml.in=.xml)
2013-01-24 14:05:58 -06:00
@GSETTINGS_RULES@
2011-11-07 13:46:58 -06:00
EXTRA_DIST = \
$(ui_DATA) \
$(plugin_in_files) \
$(filebrowser_gschema_in) \
xed-file-browser-enum-types.h.template \
xed-file-browser-enum-types.c.template \
xed-file-browser-enum-register.c.template \
xed-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