Makefile.am revision 3f3c1b629196bc8491f146705b6f8ddadfcde1c8
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_LTLIBRARIES = libfts.la
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
7d4c8041ab63e6a1bf17a9b2bb11dd18634971e2Aki Tuomi# I$(top_srcdir)/src/lib-fts needed to include
7d4c8041ab63e6a1bf17a9b2bb11dd18634971e2Aki Tuomi# word-break-data.c and word-boundary-data.c
7d4c8041ab63e6a1bf17a9b2bb11dd18634971e2Aki Tuomi# in fts-tokenizer-generic.c
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenAM_CPPFLAGS = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -I$(top_srcdir)/src/lib \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -I$(top_srcdir)/src/lib-test \
12bc47bcae87a1f954b98420929eaf90922aa605Timo Sirainen -I$(top_srcdir)/src/lib-mail \
7d4c8041ab63e6a1bf17a9b2bb11dd18634971e2Aki Tuomi -I$(top_srcdir)/src/lib-fts \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(LIBEXTTEXTCAT_CFLAGS) \
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo Sirainen $(LIBICU_CFLAGS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -DUDHRDIR=\""$(top_srcdir)/src/lib-fts"\" \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -DDATADIR=\"$(pkgdatadir)\" \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila -DTEST_STOPWORDS_DIR=\""$(top_srcdir)/src/lib-fts/stopwords"\"
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenstopwordsdir = $(datadir)/${PACKAGE_TARNAME}/stopwords
9cff78f3cc4830cce2183f630ec671a98087e4d1Timo Sirainendist_stopwords_DATA = \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_da.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_de.txt \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila stopwords/stopwords_en.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_es.txt \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila stopwords/stopwords_fi.txt \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila stopwords/stopwords_fr.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_it.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_nl.txt \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila stopwords/stopwords_no.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_pt.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_ro.txt \
0605ff6f25783f7c69c1148f9f3a7bd4c34c098fTeemu Huovila stopwords/stopwords_ru.txt \
abfc91b502618e387a5c9c87bcf658b341735947Teemu Huovila stopwords/stopwords_sv.txt
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenBUILT_SOURCES = word-boundary-data.c word-break-data.c
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenEXTRA_DIST = \
e162baa2d2ce41a009988e86636a5c77a2725477Timo Sirainen udhr_fra.txt \
4bf6941ccdfb27c99e15ab32e5299e25cd2855c6Timo Sirainen PropList.txt \
91d2e560eb95a9ab7f2c194d5bf14179aff6023bPhil Carmody word-properties.pl \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen WordBreakProperty.txt \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen word-boundary-data.c \
3f3c1b629196bc8491f146705b6f8ddadfcde1c8Teemu Huovila word-break-data.c \
3f3c1b629196bc8491f146705b6f8ddadfcde1c8Teemu Huovila stopwords/stopwords_malformed.txt
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenWordBreakProperty.txt:
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test -f WordBreakProperty.txt || wget http://www.unicode.org/Public/UNIDATA/auxiliary/WordBreakProperty.txt
b9495c944b49d71e8235c772c2dc035fdab282cdTimo Sirainen$(srcdir)/word-boundary-data.c: word-properties.pl WordBreakProperty.txt
a5563dc790a44bb58860d74479a24349f593d68fTimo Sirainen perl word-properties.pl boundaries WordBreakProperty.txt > $@
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenPropList.txt:
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test -f PropList.txt || wget http://www.unicode.org/Public/UNIDATA/PropList.txt
91d2e560eb95a9ab7f2c194d5bf14179aff6023bPhil Carmody$(srcdir)/word-break-data.c: word-properties.pl PropList.txt
a5563dc790a44bb58860d74479a24349f593d68fTimo Sirainen perl word-properties.pl breaks PropList.txt > $@
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_STEMMER
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenSTEMMER_LIBS = -lstemmer
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenendif
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_EXTTEXTCAT
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenTEXTCAT_LIBS = $(LIBEXTTEXTCAT_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenelse
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_TEXTCAT
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenTEXTCAT_LIBS = -ltextcat
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenendif
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenendif
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo Sirainenif BUILD_LIBICU
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo SirainenICU_SOURCES = fts-icu.c
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo SirainenNORMALIZER_LIBS = $(LIBICU_LIBS)
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo SirainenICU_TESTS = test-fts-icu
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenendif
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_LIBADD = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(STEMMER_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEXTCAT_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(NORMALIZER_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_SOURCES = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-filter.c \
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila fts-filter-contractions.c \
471167b9701fcc99b66f7a8bcae07bc4ac0dbbd4Timo Sirainen fts-filter-english-possessive.c \
acfcf88e4dd529e4b2409f43bc9713cbc0169347Timo Sirainen fts-filter-lowercase.c \
63713f16bad8b55e74c479adb6b47965b519c29bTimo Sirainen fts-filter-normalizer-icu.c \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-filter-stopwords.c \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-filter-stemmer-snowball.c \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-language.c \
6dd785e6857866657d6ef7a88af6d46ed0133801Teemu Huovila fts-library.c \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-tokenizer.c \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-tokenizer-address.c \
00544ad37ece26b2c4f2210ed5e5295241d0db19Teemu Huovila fts-tokenizer-common.c \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen fts-tokenizer-generic.c \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen $(ICU_SOURCES)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainenheaders = \
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen fts-common.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-filter.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-filter-private.h \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen fts-icu.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-language.h \
6dd785e6857866657d6ef7a88af6d46ed0133801Teemu Huovila fts-library.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-tokenizer.h \
00544ad37ece26b2c4f2210ed5e5295241d0db19Teemu Huovila fts-tokenizer-common.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-tokenizer-private.h \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen fts-tokenizer-generic-private.h
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainenpkginc_libdir=$(pkgincludedir)
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainenpkginc_lib_HEADERS = $(headers)
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainen
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huoviladeps=../lib-dovecot/libdovecot.la
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovila
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovilapkglib_LTLIBRARIES = libdovecot-fts.la
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovilalibdovecot_fts_la_SOURCES =
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovilalibdovecot_fts_la_LIBADD = libfts.la $(deps)
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovilalibdovecot_fts_la_DEPENDENCIES = libfts.la $(deps)
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovilalibdovecot_fts_la_LDFLAGS = -export-dynamic
40bdcc2e50b6969596b10f848d1fbe23820666f9Teemu Huovila
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_programs = \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen $(ICU_TESTS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEST_FTS_LANGUAGE) \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen test-fts-filter \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test-fts-tokenizer
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_PROGRAMS = $(test_programs)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_libs = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen ../lib-test/libtest.la \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen ../lib/liblib.la
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_deps = $(noinst_LTLIBRARIES) $(test_libs)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainentest_fts_icu_SOURCES = test-fts-icu.c
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainentest_fts_icu_LDADD = fts-icu.lo $(LIBICU_LIBS) $(test_libs)
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainentest_fts_icu_DEPENDENCIES = fts-icu.lo $(test_deps)
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_fts_filter_SOURCES = test-fts-filter.c
ec930ce90b17fb63ff035c1c87d994800de092f1Timo Sirainentest_fts_filter_LDADD = libfts.la $(test_libs)
ec930ce90b17fb63ff035c1c87d994800de092f1Timo Sirainentest_fts_filter_DEPENDENCIES = libfts.la $(test_deps)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_EXTTEXTCAT
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenTEST_FTS_LANGUAGE = test-fts-language
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_fts_language_SOURCES = test-fts-language.c
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_fts_language_LDADD = fts-language.lo $(test_libs) $(TEXTCAT_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_fts_language_DEPENDENCIES = $(test_deps)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenendif
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_fts_tokenizer_SOURCES = test-fts-tokenizer.c
00544ad37ece26b2c4f2210ed5e5295241d0db19Teemu Huovilatest_fts_tokenizer_LDADD = fts-tokenizer.lo fts-tokenizer-generic.lo fts-tokenizer-address.lo fts-tokenizer-common.lo ../lib-mail/libmail.la $(test_libs)
12bc47bcae87a1f954b98420929eaf90922aa605Timo Sirainentest_fts_tokenizer_DEPENDENCIES = ../lib-mail/libmail.la $(test_deps)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainencheck: check-am check-test
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainencheck-test: all-am
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen for bin in $(test_programs); do \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen done