From: Josef 'Jeff' Sipek Date: Tue, 9 May 2017 09:36:40 +0000 (+0300) Subject: lib-fts: download data files into srcdir X-Git-Tag: 2.3.0.rc1~1645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824107247fcaa05c081f32bffd2cdecea8ec557a;p=thirdparty%2Fdovecot%2Fcore.git lib-fts: download data files into srcdir This is a step toward fixing builds where object dir != source dir. --- diff --git a/src/lib-fts/Makefile.am b/src/lib-fts/Makefile.am index 7e3d1a2a1c..913ff9521d 100644 --- a/src/lib-fts/Makefile.am +++ b/src/lib-fts/Makefile.am @@ -41,15 +41,15 @@ EXTRA_DIST = \ word-break-data.c \ stopwords/stopwords_malformed.txt -WordBreakProperty.txt: - test -f WordBreakProperty.txt || wget https://dovecot.org/res/WordBreakProperty.txt -$(srcdir)/word-boundary-data.c: word-properties.pl WordBreakProperty.txt - perl word-properties.pl boundaries WordBreakProperty.txt > $@ - -PropList.txt: - test -f PropList.txt || wget https://dovecot.org/res/PropList.txt -$(srcdir)/word-break-data.c: word-properties.pl PropList.txt - perl word-properties.pl breaks PropList.txt > $@ +$(srcdir)/WordBreakProperty.txt: + test -f $@ || wget -O $@ https://dovecot.org/res/WordBreakProperty.txt +$(srcdir)/word-boundary-data.c: word-properties.pl $(srcdir)/WordBreakProperty.txt + perl word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@ + +$(srcdir)/PropList.txt: + test -f $@ || wget -O $@ https://dovecot.org/res/PropList.txt +$(srcdir)/word-break-data.c: word-properties.pl $(srcdir)/PropList.txt + perl word-properties.pl breaks $(srcdir)/PropList.txt > $@ if BUILD_FTS_STEMMER