blob: 7b426f859d649f40ab0ff8d5fb3181a35259a64d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
NULL=
SUBDIRS = . docs plugins
AM_CPPFLAGS = \
-DDATADIR=\"$(datadir)\" \
-DPLUGINDIR=\"$(libdir)/caja-sendto/plugins\" \
-I$(top_srcdir) \
-I$(top_builddir) \
-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
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
resources_built_sources = caja-sendto-resources.h caja-sendto-resources.c
$(resources_built_sources): org.mate.caja.extensions.sendto.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/org.mate.caja.extensions.sendto.gresource.xml)
$(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate --c-name sendto $<
caja_sendto_SOURCES = caja-sendto-command.c $(resources_built_sources)
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 \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define NST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __NST_ENUM_TYPES_H__ */" \
$(nst_headers_to_scan_for_enums)) > $@
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 \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
$(nst_headers_to_scan_for_enums)) > $@
gsettingsschema_in_files = org.mate.Caja.Sendto.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
@GSETTINGS_RULES@
man_MANS = caja-sendto.1
extensiondir = $(datadir)/caja/extensions
extension_in_files = libcaja-sendto.caja-extension.desktop.in
extension_DATA = $(extension_in_files:.caja-extension.desktop.in=.caja-extension)
$(extension_DATA): $(extension_in_files)
$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Copyright --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
EXTRA_DIST = \
$(man_MANS) \
caja-sendto.pc.in \
caja-sendto.ui \
$(gsettingsschema_in_files) \
org.mate.caja.extensions.sendto.gresource.xml \
$(NULL)
CLEANFILES = \
$(nst_built_headers) \
$(nst_built_cfiles) \
$(gsettings_SCHEMAS) \
$(extension_DATA) \
*.gschema.valid \
$(resources_built_sources) \
$(NULL)
|