Add RangeProcessor class to replace ValueRangeProcessor
[xapian.git] / xapian-core / queryparser / Makefile.mk
blobb5f0e987290cf425222380d3be3a3b09c8456290
1 if VPATH_BUILD
2 # We need this so that generated sources can find non-generated headers in a
3 # VPATH build from git.
4 AM_CPPFLAGS += -I$(top_srcdir)/queryparser
5 endif
7 noinst_HEADERS +=\
8 queryparser/cjk-tokenizer.h\
9 queryparser/queryparser_internal.h\
10 queryparser/queryparser_token.h\
11 queryparser/termgenerator_internal.h
13 lemon_built_sources =\
14 queryparser/queryparser_internal.cc\
15 queryparser/queryparser_token.h
17 EXTRA_DIST += $(lemon_built_sources)\
18 queryparser/Makefile\
19 queryparser/lemon.c\
20 queryparser/queryparser.lemony\
21 queryparser/queryparser.lt
23 if MAINTAINER_MODE
24 queryparser/lemon: queryparser/lemon.c
25 $(CC_FOR_BUILD) -o queryparser/lemon $(srcdir)/queryparser/lemon.c
27 queryparser/queryparser_internal.cc queryparser/queryparser_token.h: queryparser/queryparser_internal.stamp
28 ## Recover from the removal of $@. A full explanation of these rules is in the
29 ## automake manual under the heading "Multiple Outputs".
30 @if test -f $@; then :; else \
31 trap 'rm -rf queryparser/queryparser_internal.lock queryparser/queryparser_internal.stamp' 1 2 13 15; \
32 if mkdir queryparser/queryparser_internal.lock 2>/dev/null; then \
33 rm -f queryparser/queryparser_internal.stamp; \
34 $(MAKE) $(AM_MAKEFLAGS) queryparser/queryparser_internal.stamp; \
35 rmdir queryparser/queryparser_internal.lock; \
36 else \
37 while test -d queryparser/queryparser_internal.lock; do sleep 1; done; \
38 test -f queryparser/queryparser_internal.stamp; exit $$?; \
39 fi; \
41 queryparser/queryparser_internal.stamp: queryparser/queryparser.lemony queryparser/queryparser.lt queryparser/lemon
42 ## It's OK to directly update the output file here, since it's the stamp file
43 ## which determines whether the file is up to date.
44 queryparser/lemon -q -oqueryparser/queryparser_internal.cc \
45 -hqueryparser/queryparser_token.h \
46 $(srcdir)/queryparser/queryparser.lemony
47 $(PERL) -pi -e 's@^(#line \d+ ").*/(queryparser/)@$$1$$2@' \
48 queryparser/queryparser_internal.cc
49 ## Lemon carefully avoids touching queryparser_token.h if it hasn't changed,
50 ## but only the generated file queryparser_internal.cc depends on it, so it's
51 ## better to touch it so we can have a dependency to generate it.
52 touch queryparser/queryparser_token.h
53 touch $@
55 BUILT_SOURCES += $(lemon_built_sources)
56 CLEANFILES += queryparser/lemon
57 endif
59 lib_src +=\
60 queryparser/cjk-tokenizer.cc\
61 queryparser/queryparser.cc\
62 queryparser/queryparser_internal.cc\
63 queryparser/termgenerator.cc\
64 queryparser/termgenerator_internal.cc