summaryrefslogtreecommitdiffstats
path: root/src/plugins/fts/Makefile.am
blob: 2e7753c94753706fc1e0e08499e73457ac9f1be6 (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
pkglibexecdir = $(libexecdir)/dovecot
doveadm_moduledir = $(moduledir)/doveadm

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-fts \
	-I$(top_srcdir)/src/lib-ssl-iostream \
	-I$(top_srcdir)/src/lib-http \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-imap \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/lib-storage/index \
	-I$(top_srcdir)/src/doveadm

NOPLUGIN_LDFLAGS =
lib20_doveadm_fts_plugin_la_LDFLAGS = -module -avoid-version
lib20_fts_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib20_fts_plugin.la

lib20_fts_plugin_la_LIBADD = ../../lib-fts/libfts.la

lib20_fts_plugin_la_SOURCES = \
	fts-api.c \
	fts-build-mail.c \
	fts-expunge-log.c \
	fts-indexer.c \
	fts-parser.c \
	fts-parser-html.c \
	fts-parser-script.c \
	fts-parser-tika.c \
	fts-plugin.c \
	fts-search.c \
	fts-search-args.c \
	fts-search-serialize.c \
	fts-storage.c \
	fts-user.c

pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = \
	fts-api.h \
	fts-api-private.h \
	fts-expunge-log.h \
	fts-indexer.h \
	fts-parser.h \
	fts-storage.h \
	fts-user.h

noinst_HEADERS = \
	doveadm-fts.h \
	fts-build-mail.h \
	fts-plugin.h \
	fts-search-args.h \
	fts-search-serialize.h

pkglibexec_PROGRAMS = xml2text

xml2text_SOURCES = xml2text.c fts-parser-html.c
xml2text_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
xml2text_LDADD = $(LIBDOVECOT) $(BINARY_LDFLAGS)
xml2text_DEPENDENCIES = $(module_LTLIBRARIES) $(LIBDOVECOT_DEPS)

pkglibexec_SCRIPTS = decode2text.sh
EXTRA_DIST = $(pkglibexec_SCRIPTS)

doveadm_module_LTLIBRARIES = \
	lib20_doveadm_fts_plugin.la

lib20_doveadm_fts_plugin_la_SOURCES = \
	doveadm-fts.c \
	doveadm-dump-fts-expunge-log.c