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
8 languages
/steminternal.h
10 snowball_algorithms
=\
12 languages
/armenian.sbl\
14 languages
/catalan.sbl\
17 languages
/english.sbl\
18 languages
/earlyenglish.sbl\
19 languages
/finnish.sbl\
21 languages
/german2.sbl\
23 languages
/hungarian.sbl\
24 languages
/indonesian.sbl\
25 languages
/italian.sbl\
26 languages
/kraaij_pohlmann.sbl\
28 languages
/norwegian.sbl\
30 languages
/portuguese.sbl\
31 languages
/romanian.sbl\
32 languages
/russian.sbl\
33 languages
/spanish.sbl\
34 languages
/swedish.sbl\
37 snowball_built_sources
=\
38 $(snowball_algorithms
:.sbl
=.
cc)\
39 $(snowball_algorithms
:.sbl
=.h
)
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
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\
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
80 $(MKDIR_P
) languages
/stopwords
82 sed
's/[ ]*|.*//;/^[ ]*$$/d' < $< |
sort|uniq
> $@
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`
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
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
108 lib_src
+= $(snowball_built_sources
)\
110 languages
/steminternal.
cc