]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fts: download data files into srcdir
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Tue, 9 May 2017 09:36:40 +0000 (12:36 +0300)
committerGitLab <gitlab@git.dovecot.net>
Wed, 10 May 2017 09:19:20 +0000 (12:19 +0300)
This is a step toward fixing builds where object dir != source dir.

src/lib-fts/Makefile.am

index 7e3d1a2a1ca8650b08a6a0a22aef1791daf38929..913ff9521db693a526bd6833078eea5f1d73a76b 100644 (file)
@@ -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