2006-05-02 15:28:56 +04:00
|
|
|
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.14 2006/05/02 11:28:54 teodor Exp $
|
2003-07-21 14:27:44 +04:00
|
|
|
|
|
|
|
MODULE_big = tsearch2
|
|
|
|
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
|
2003-08-04 18:54:47 +04:00
|
|
|
dict_snowball.o dict_ispell.o dict_syn.o \
|
|
|
|
wparser.o wparser_def.o \
|
New features for tsearch2:
1 Comparison operation for tsquery
2 Btree index on tsquery
3 numnode(tsquery) - returns 'length' of tsquery
4 tsquery @ tsquery, tsquery ~ tsquery - contains, contained for tsquery.
Note: They don't gurantee exact result, only MAY BE, so it
useful only for speed up rewrite functions
5 GiST index support for @,~
6 rewrite():
select rewrite(orig, what, to);
select rewrite(ARRAY[orig, what, to]) from tsquery_table;
select rewrite(orig, 'select what, to from tsquery_table;');
7 significantly improve cover algorithm
2005-11-08 20:08:46 +03:00
|
|
|
ts_cfg.o tsvector.o query_cleanup.o crc32.o query.o gistidx.o \
|
|
|
|
tsvector_op.o rank.o ts_stat.o \
|
2005-11-21 15:27:57 +03:00
|
|
|
query_util.o query_support.o query_rewrite.o query_gist.o \
|
2006-05-02 15:28:56 +04:00
|
|
|
ts_locale.o ginidx.o
|
2003-07-21 14:27:44 +04:00
|
|
|
|
2003-08-04 18:54:47 +04:00
|
|
|
SUBDIRS := snowball ispell wordparser
|
|
|
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
|
|
|
|
2004-08-21 00:13:10 +04:00
|
|
|
OBJS += $(SUBDIROBJS)
|
2003-08-04 18:54:47 +04:00
|
|
|
|
2003-08-23 08:25:29 +04:00
|
|
|
PG_CPPFLAGS = -I$(srcdir)/snowball -I$(srcdir)/ispell -I$(srcdir)/wordparser
|
|
|
|
|
2006-01-27 19:32:31 +03:00
|
|
|
DATA = stopword/english.stop stopword/russian.stop stopword/russian.stop.utf8
|
2003-07-21 14:27:44 +04:00
|
|
|
DATA_built = tsearch2.sql untsearch2.sql
|
|
|
|
DOCS = README.tsearch2
|
|
|
|
REGRESS = tsearch2
|
|
|
|
|
2005-07-25 03:30:10 +04:00
|
|
|
SHLIB_LINK += $(filter -lm, $(LIBS))
|
2003-07-21 14:27:44 +04:00
|
|
|
|
2004-08-21 00:13:10 +04:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2005-09-27 21:13:14 +04:00
|
|
|
PGXS := $(shell pg_config --pgxs)
|
2004-08-21 00:13:10 +04:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/tsearch2
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
|
|
|
|
|
|
|
$(SUBDIRS:%=%-recursive):
|
|
|
|
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
|
|
|
|
2003-08-23 08:25:29 +04:00
|
|
|
tsearch2.sql: tsearch.sql.in
|
2004-10-18 03:09:31 +04:00
|
|
|
sed -e 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' $< >$@
|
2003-07-21 14:27:44 +04:00
|
|
|
|
|
|
|
untsearch2.sql: untsearch.sql.in
|
2003-08-04 18:54:47 +04:00
|
|
|
cp $< $@
|
|
|
|
|
2003-08-23 08:25:29 +04:00
|
|
|
.PHONY: subclean
|
2003-08-04 18:54:47 +04:00
|
|
|
clean: subclean
|
2003-07-21 14:27:44 +04:00
|
|
|
|
2003-08-04 18:54:47 +04:00
|
|
|
subclean:
|
|
|
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done
|