Add Indonesian stemmer
[xapian.git] / xapian-core / languages / Makefile.mk
blob1fdb441f69f8489746159818737dbf8d143fdf37
1 if VPATH_BUILD
2 # We need this so that generated sources can find non-generated headers and
3 # non-generated sources can find generated headers in a VPATH build from git.
4 AM_CPPFLAGS += -I$(top_srcdir)/languages -Ilanguages
5 endif
7 noinst_HEADERS +=\
8 languages/steminternal.h
10 snowball_algorithms =\
11 languages/arabic.sbl\
12 languages/armenian.sbl\
13 languages/basque.sbl\
14 languages/catalan.sbl\
15 languages/danish.sbl\
16 languages/dutch.sbl\
17 languages/english.sbl\
18 languages/earlyenglish.sbl\
19 languages/finnish.sbl\
20 languages/french.sbl\
21 languages/german2.sbl\
22 languages/german.sbl\
23 languages/hungarian.sbl\
24 languages/indonesian.sbl\
25 languages/italian.sbl\
26 languages/kraaij_pohlmann.sbl\
27 languages/lovins.sbl\
28 languages/norwegian.sbl\
29 languages/porter.sbl\
30 languages/portuguese.sbl\
31 languages/romanian.sbl\
32 languages/russian.sbl\
33 languages/spanish.sbl\
34 languages/swedish.sbl\
35 languages/turkish.sbl
37 snowball_built_sources =\
38 $(snowball_algorithms:.sbl=.cc)\
39 $(snowball_algorithms:.sbl=.h)
41 snowball_sources =\
42 languages/compiler/space.c\
43 languages/compiler/tokeniser.c\
44 languages/compiler/analyser.c\
45 languages/compiler/generator.c\
46 languages/compiler/driver.c
48 snowball_headers =\
49 languages/compiler/header.h\
50 languages/compiler/syswords.h\
51 languages/compiler/syswords2.h
53 EXTRA_DIST += $(snowball_sources) $(snowball_headers) $(snowball_algorithms) $(snowball_built_sources)\
54 languages/collate-sbl\
55 languages/allsnowballheaders.h\
56 languages/sbl-dispatch.h\
57 languages/Makefile
59 stopworddir = $(pkgdatadir)/stopwords
60 dist_stopword_DATA = $(snowball_stopwords:.txt=.list)
62 snowball_stopwords = \
63 languages/stopwords/arabic.txt\
64 languages/stopwords/danish.txt\
65 languages/stopwords/dutch.txt\
66 languages/stopwords/english.txt\
67 languages/stopwords/finnish.txt\
68 languages/stopwords/french.txt\
69 languages/stopwords/german.txt\
70 languages/stopwords/hungarian.txt\
71 languages/stopwords/italian.txt\
72 languages/stopwords/norwegian.txt\
73 languages/stopwords/portuguese.txt\
74 languages/stopwords/russian.txt\
75 languages/stopwords/spanish.txt\
76 languages/stopwords/swedish.txt
78 .txt.list:
79 if VPATH_BUILD
80 $(MKDIR_P) languages/stopwords
81 endif
82 sed 's/[ ]*|.*//;/^[ ]*$$/d' < $< |sort|uniq > $@
84 if MAINTAINER_MODE
85 $(snowball_built_sources): languages/snowball $(snowball_algorithms)
87 languages/snowball: $(snowball_sources) $(snowball_headers)
88 $(CC_FOR_BUILD) -o languages/snowball \
89 -DDISABLE_CSHARP -DDISABLE_GO -DDISABLE_JAVA -DDISABLE_JS -DDISABLE_PYTHON -DDISABLE_RUST \
90 `for f in $(snowball_sources) ; do test -f $$f && echo $$f || echo $(srcdir)/$$f ; done`
92 .sbl.cc:
93 languages/snowball $< -o `echo $@|sed 's!\.cc$$!!'` -c++ -u -n InternalStem`echo $<|sed 's!.*/\(.\).*!\1!'|tr a-z A-Z``echo $<|sed 's!.*/.!!;s!\.sbl!!'` -p SnowballStemImplementation
95 .sbl.h:
96 languages/snowball $< -o `echo $@|sed 's!\.h$$!!'` -c++ -u -n InternalStem`echo $<|sed 's!.*/\(.\).*!\1!'|tr a-z A-Z``echo $<|sed 's!.*/.!!;s!\.sbl!!'` -p SnowballStemImplementation
98 languages/allsnowballheaders.h: languages/sbl-dispatch.h
99 languages/sbl-dispatch.h languages/allsnowballheaders.h: languages/collate-sbl languages/Makefile.mk common/Tokeniseise.pm
100 $(PERL) -I'$(srcdir)/common' '$(srcdir)/languages/collate-sbl' '$(srcdir)' $(snowball_algorithms)
102 BUILT_SOURCES += $(snowball_built_sources)\
103 languages/allsnowballheaders.h\
104 languages/sbl-dispatch.h
105 CLEANFILES += languages/snowball
106 endif
108 lib_src += $(snowball_built_sources)\
109 languages/stem.cc\
110 languages/steminternal.cc