Makefile.am revision 3f3c1b629196bc8491f146705b6f8ddadfcde1c8
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_LTLIBRARIES = libfts.la
7d4c8041ab63e6a1bf17a9b2bb11dd18634971e2Aki Tuomi# I$(top_srcdir)/src/lib-fts needed to include
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 Sirainenstopwordsdir = $(datadir)/${PACKAGE_TARNAME}/stopwords
9cff78f3cc4830cce2183f630ec671a98087e4d1Timo Sirainendist_stopwords_DATA = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenBUILT_SOURCES = word-boundary-data.c word-break-data.c
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenEXTRA_DIST = \
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 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 Sirainenif BUILD_FTS_STEMMER
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenSTEMMER_LIBS = -lstemmer
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_EXTTEXTCAT
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenTEXTCAT_LIBS = $(LIBEXTTEXTCAT_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenif BUILD_FTS_TEXTCAT
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo SirainenTEXTCAT_LIBS = -ltextcat
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo Sirainenif BUILD_LIBICU
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo SirainenNORMALIZER_LIBS = $(LIBICU_LIBS)
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo SirainenICU_TESTS = test-fts-icu
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_LIBADD = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(STEMMER_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEXTCAT_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(NORMALIZER_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_SOURCES = \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen $(ICU_SOURCES)
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainenpkginc_libdir=$(pkgincludedir)
f1306b3d242963588c97b35d16973c4198bcae7eTimo Sirainenpkginc_lib_HEADERS = $(headers)
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
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_programs = \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen $(ICU_TESTS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEST_FTS_LANGUAGE) \
bf698b98d3a3a1eced66cc682c449f23bf2b67d0Timo Sirainen test-fts-filter \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test-fts-tokenizer
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_PROGRAMS = $(test_programs)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_deps = $(noinst_LTLIBRARIES) $(test_libs)
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)
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 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 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 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; \