Makefile.am revision b9495c944b49d71e8235c772c2dc035fdab282cd
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_LTLIBRARIES = libfts.la
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 \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(LIBEXTTEXTCAT_CFLAGS) \
cb6f6ef5044a559fb285e2f7d3fe12b4751ea708Timo Sirainen $(LIBICU_CFLAGS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -DUDHRDIR=\""$(top_srcdir)/src/lib-fts"\" \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -DDATADIR=\"$(pkgdatadir)\" \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen -DTEST_STOPWORDS_DIR=\""$(top_srcdir)/src/lib-fts"\"
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
91d2e560eb95a9ab7f2c194d5bf14179aff6023bPhil Carmody perl word-properties.pl boundaries WordBreakProperty.txt > $@.tmp && mv $@.tmp $@
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
91d2e560eb95a9ab7f2c194d5bf14179aff6023bPhil Carmody perl word-properties.pl breaks PropList.txt > $@.tmp && mv $@.tmp $@
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)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_LIBADD = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(STEMMER_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEXTCAT_LIBS) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(NORMALIZER_LIBS)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainenlibfts_la_SOURCES = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_HEADERS = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_programs = \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test-fts-filter \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen $(TEST_FTS_LANGUAGE) \
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainen test-fts-tokenizer
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainennoinst_PROGRAMS = $(test_programs)
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3Timo Sirainentest_deps = $(noinst_LTLIBRARIES) $(test_libs)
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
12bc47bcae87a1f954b98420929eaf90922aa605Timo Sirainentest_fts_tokenizer_LDADD = fts-tokenizer.lo fts-tokenizer-generic.lo fts-tokenizer-address.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; \