@@ -7,24 +7,26 @@ override CPPFLAGS := -I. -I./snowball -I./ispell -I./wordparser $(CPPFLAGS)
7
7
8
8
MODULE_big = tsearch2
9
9
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
10
- snowball/english_stem.o snowball/api.o snowball/russian_stem.o snowball/utilities.o \
11
- dict_snowball.o ispell/spell.o dict_ispell.o dict_syn.o \
12
- wparser.o wordparser/parser.o wordparser/deflex.o wparser_def.o \
10
+ dict_snowball.o dict_ispell.o dict_syn.o \
11
+ wparser.o wparser_def.o \
13
12
ts_cfg.o tsvector.o rewrite.o crc32.o query.o gistidx.o \
14
13
tsvector_op.o rank.o ts_stat.o
15
14
15
+ SUBDIRS := snowball ispell wordparser
16
+ SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o )
17
+
18
+ OBJS: = $(OBJS ) $(SUBDIROBJS )
19
+
20
+ $(SUBDIROBJS ) : $(SUBDIRS:%=%-recursive ) ;
21
+
22
+ $(SUBDIRS:% =%-recursive):
23
+ $(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
24
+
16
25
DATA_built = tsearch2.sql untsearch2.sql
17
26
DOCS = README.tsearch2
18
27
REGRESS = tsearch2
19
28
20
- wordparser/parser.c : wordparser/parser.l
21
- ifdef FLEX
22
- $(FLEX) $(FLEXFLAGS) -8 -Ptsearch2_yy -o'$@' $<
23
- else
24
- @$(missing) flex $< $@
25
- endif
26
-
27
- EXTRA_CLEAN = wordparser/parser.c tsearch2.sql.in
29
+ EXTRA_CLEAN = tsearch2.sql.in
28
30
29
31
SHLIB_LINK := -lm
30
32
include $(top_srcdir ) /contrib/contrib-global.mk
@@ -40,5 +42,10 @@ tsearch2.sql.in: tsearch.sql._in
40
42
sed ' s,DATA_PATH,$(datadir),g' < $< > $@
41
43
42
44
untsearch2.sql : untsearch.sql.in
43
- cp $< $@
45
+ cp $< $@
46
+
47
+ clean : subclean
44
48
49
+ subclean :
50
+ for dir in $( SUBDIRS) ; do $( MAKE) -C $$ dir clean || exit ; done
51
+
0 commit comments