summaryrefslogtreecommitdiff
path: root/sendto/Makefile.am
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-17 17:40:03 +0200
committerStefano Karapetsas <[email protected]>2013-10-17 17:40:03 +0200
commiteae33615af610f84fc2be016c5b222f44e741cc1 (patch)
tree8b7032af97743608cca3fbe60cca06d419e42ce2 /sendto/Makefile.am
parenteb157f54f3dbbbcf3b63f43073c9687f66497b45 (diff)
downloadcaja-extensions-eae33615af610f84fc2be016c5b222f44e741cc1.tar.bz2
caja-extensions-eae33615af610f84fc2be016c5b222f44e741cc1.tar.xz
Add sendto extension
Diffstat (limited to 'sendto/Makefile.am')
-rw-r--r--sendto/Makefile.am82
1 files changed, 82 insertions, 0 deletions
diff --git a/sendto/Makefile.am b/sendto/Makefile.am
new file mode 100644
index 0000000..030b731
--- /dev/null
+++ b/sendto/Makefile.am
@@ -0,0 +1,82 @@
+SUBDIRS = docs plugins
+
+AM_CPPFLAGS = \
+ -DDATADIR=\"$(datadir)\" \
+ -DPLUGINDIR=\"$(libdir)/caja-sendto/plugins\" \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ -DUIDIR=\""$(uidir)"\" \
+ -DLOCALEDIR="\"$(datadir)/locale\"" \
+ $(SENDTO_CFLAGS) \
+ $(CAJA_CFLAGS) \
+ $(DISABLE_DEPRECATED) \
+ $(WARN_CFLAGS)
+
+caja_sendto_includedir = $(includedir)/caja-sendto/
+caja_sendto_include_HEADERS = caja-sendto-plugin.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = caja-sendto.pc
+
+ui_DATA = caja-sendto.ui
+uidir = $(datadir)/caja-sendto/ui
+
+noinst_LTLIBRARIES = libnstplugin.la
+libnstplugin_la_SOURCES = \
+ caja-sendto-plugin.h \
+ nst-enum-types.c \
+ nst-enum-types.h
+libnstplugin_la_LIBADD = $(SENDTO_LIBS)
+
+bin_PROGRAMS = caja-sendto
+
+caja_sendto_SOURCES = caja-sendto-command.c
+caja_sendto_LDADD = $(SENDTO_LIBS) libnstplugin.la
+
+caja_extensiondir = $(CAJA_EXTENSION_DIR)
+caja_extension_LTLIBRARIES = libcaja-sendto.la
+libcaja_sendto_la_SOURCES = \
+ caja-nste.c \
+ caja-nste.h \
+ caja-sendto-module.c
+
+libcaja_sendto_la_LDFLAGS = -module -avoid-version -no-undefined
+libcaja_sendto_la_LIBADD = $(CAJA_LIBS)
+
+nst_headers_to_scan_for_enums = caja-sendto-plugin.h
+# Generate the enums source code, with glib-mkenums:
+# This is based on the same Makefile.am stuff in pango:
+nst_built_headers = nst-enum-types.h
+nst_built_cfiles = nst-enum-types.c
+
+nst-enum-types.h: $(nst_headers_to_scan_for_enums) Makefile
+ $(AM_V_GEN) (cd $(srcdir) && glib-mkenums \
+ --fhead "#ifndef __NST_ENUM_TYPES_H__\n#define __NST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
+ --fprod "/* enumerations from \"@[email protected]\" */\n" \
+ --vhead "GType @[email protected]_get_type (void);\n#define [email protected]@ (@[email protected]_get_type())\n" \
+ --ftail "G_END_DECLS\n\n#endif /* __NST_ENUM_TYPES_H__ */" \
+ $(nst_headers_to_scan_for_enums)) > [email protected]
+
+nst-enum-types.c: $(nst_headers_to_scan_for_enums) Makefile nst-enum-types.h
+ $(AM_V_GEN) (cd $(srcdir) && glib-mkenums \
+ --fhead "#include <caja-sendto-plugin.h>\n" \
+ --fhead "#include \"nst-enum-types.h\"\n" \
+ --fhead "#include <glib-object.h>" \
+ --fprod "\n/* enumerations from \"@[email protected]\" */" \
+ --vhead "GType\[email protected][email protected]_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const [email protected]@Value values[] = {" \
+ --vtail " { 0, NULL, NULL }\n };\n etype = [email protected]@_register_static (\"@[email protected]\", values);\n }\n return etype;\n}\n" \
+ $(nst_headers_to_scan_for_enums)) > [email protected]
+
+convertdir=$(datadir)/MateConf/gsettings
+convert_DATA = caja-sendto-convert
+
+gsettingsschema_in_files = org.mate.Caja.Sendto.gschema.xml.in
+gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
+
+man_MANS = caja-sendto.1
+
+EXTRA_DIST = $(ui_DATA) $(man_MANS) caja-sendto.pc.in $(convert_DATA) $(gsettingsschema_in_files)
+CLEANFILES = $(nst_built_headers) $(nst_built_cfiles)