head	1.12;
access;
symbols
	REL9_0_0:1.12
	REL9_1_ALPHA1:1.12
	REL9_0_RC1:1.12
	REL9_0_BETA4:1.12
	REL9_0_STABLE:1.12.0.6
	REL9_0_BETA3:1.12
	REL9_0_BETA2:1.12
	REL8_3_11:1.4.2.1
	REL8_4_4:1.9
	REL9_0_BETA1:1.12
	REL9_0_ALPHA5_BRANCH:1.12.0.4
	REL9_0_ALPHA5:1.12
	REL8_3_10:1.4.2.1
	REL8_4_3:1.9
	REL9_0_ALPHA4:1.12
	REL9_0_ALPHA4_BRANCH:1.12.0.2
	REL8_5_ALPHA3:1.11
	REL8_5_ALPHA3_BRANCH:1.11.0.2
	REL8_3_9:1.4.2.1
	REL8_4_2:1.9
	REL8_5_ALPHA2:1.10
	REL8_5_ALPHA2_BRANCH:1.10.0.2
	REL8_3_8:1.4.2.1
	REL8_4_1:1.9
	REL8_5_ALPHA1:1.9
	REL8_5_ALPHA1_BRANCH:1.9.0.4
	REL8_4_STABLE:1.9.0.2
	REL8_4_0:1.9
	REL8_4_RC2:1.9
	REL8_4_RC1:1.9
	REL8_4_BETA2:1.9
	REL8_4_BETA1:1.9
	REL8_3_7:1.4.2.1
	REL8_3_6:1.4.2.1
	REL8_3_5:1.4.2.1
	REL8_3_4:1.4.2.1
	REL8_3_3:1.4.2.1
	REL8_3_2:1.4.2.1
	REL8_3_1:1.4.2.1
	REL8_3_STABLE:1.4.0.2
	REL8_3_0:1.4
	REL8_3_RC2:1.4
	REL8_3_RC1:1.4
	REL8_3_BETA4:1.3
	REL8_3_BETA3:1.3
	REL8_3_BETA2:1.3
	REL8_3_BETA1:1.3;
locks; strict;
comment	@# @;


1.12
date	2010.01.02.16.57.53;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	2009.10.26.21.33.01;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2009.01.01.17.23.48;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	2008.09.19.19.03.40;	author tgl;	state Exp;
branches;
next	1.7;

1.7
date	2008.07.14.00.51.45;	author tgl;	state Exp;
branches;
next	1.6;

1.6
date	2008.02.19.10.30.08;	author petere;	state Exp;
branches;
next	1.5;

1.5
date	2008.02.18.16.04.32;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2008.01.01.19.45.52;	author momjian;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2007.09.11.11.54.42;	author teodor;	state Exp;
branches;
next	1.2;

1.2
date	2007.08.22.06.11.56;	author tgl;	state Exp;
branches;
next	1.1;

1.1
date	2007.08.21.01.11.18;	author tgl;	state Exp;
branches;
next	;

1.4.2.1
date	2008.02.18.16.04.20;	author petere;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Update copyright for the year 2010.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for backend/tsearch
#
# Copyright (c) 2006-2010, PostgreSQL Global Development Group
#
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.11 2009/10/26 21:33:01 petere Exp $
#
#-------------------------------------------------------------------------
subdir = src/backend/tsearch
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

DICTDIR=tsearch_data

DICTFILES=synonym_sample.syn thesaurus_sample.ths hunspell_sample.affix \
	ispell_sample.affix ispell_sample.dict

OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
	dict_simple.o dict_synonym.o dict_thesaurus.o \
	dict_ispell.o regis.o spell.o \
	to_tsany.o ts_selfuncs.o ts_typanalyze.o ts_utils.o

include $(top_srcdir)/src/backend/common.mk

.PHONY: install-data
install-data: $(DICTFILES) installdirs
	$(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES)) '$(DESTDIR)$(datadir)/$(DICTDIR)/'

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'

.PHONY: uninstall-data
uninstall-data:
	rm -rf $(addprefix '$(DESTDIR)$(datadir)/$(DICTDIR)/',$(DICTFILES))
@


1.11
log
@Simplify a few makefile rules since install-sh can now install multiple
files in one run.
@
text
@d5 1
a5 1
# Copyright (c) 2006-2009, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.10 2009/08/26 22:24:43 petere Exp $
@


1.10
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.9 2009/01/01 17:23:48 momjian Exp $
d28 1
a28 3
	for i in $(DICTFILES); \
		do $(INSTALL_DATA) $(srcdir)/$$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
	done
d35 1
a35 3
	for i in $(DICTFILES); \
		do rm -rf '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
	done
@


1.9
log
@Update copyright for 2009.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.8 2008/09/19 19:03:40 tgl Exp $
d33 1
a33 1
	$(mkinstalldirs) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
@


1.8
log
@Create a selectivity estimation function for the text search @@@@ operator.

Jan Urbanski
@
text
@d5 1
a5 1
# Copyright (c) 2006-2008, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.7 2008/07/14 00:51:45 tgl Exp $
@


1.7
log
@Create a type-specific typanalyze routine for tsvector, which collects stats
on the most common individual lexemes in place of the mostly-useless default
behavior of counting duplicate tsvectors.  Future work: create selectivity
estimation functions that actually do something with these stats.

(Some other things we ought to look at doing: using the Lossy Counting
algorithm in compute_minimal_stats, and using the element-counting idea for
stats on regular arrays.)

Jan Urbanski
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.6 2008/02/19 10:30:08 petere Exp $
d22 1
a22 1
	to_tsany.o ts_typanalyze.o ts_utils.o
@


1.6
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.5 2008/02/18 16:04:32 petere Exp $
d22 1
a22 1
	to_tsany.o ts_utils.o
@


1.5
log
@Observe errors in makefile
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.4 2008/01/01 19:45:52 momjian Exp $
d24 1
a24 7
all: SUBSYS.o 

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $^

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend
a39 7

clean distclean maintainer-clean: 
	rm -f SUBSYS.o $(OBJS)

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.4
log
@Update copyrights in source tree to 2008.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.3 2007/09/11 11:54:42 teodor Exp $
d35 1
a35 1
		do $(INSTALL_DATA) $(srcdir)/$$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i; \
d44 1
a44 1
		do rm -rf '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i ; \
@


1.4.2.1
log
@Observe errors in makefile
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.4 2008/01/01 19:45:52 momjian Exp $
d35 1
a35 1
		do $(INSTALL_DATA) $(srcdir)/$$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
d44 1
a44 1
		do rm -rf '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
@


1.3
log
@Add regression tests for ispell, synonym and thesaurus dictionaries.
Rename synonym.syn.sample and thesaurs.ths.sample to
synonym_sample.syn and thesaurs_sample.ths accordingly to be able to use they
in regression test.

Ispell dictionary uses synthetic simple dictionary files.
@
text
@d5 1
a5 1
# Copyright (c) 2006-2007, PostgreSQL Global Development Group
d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.2 2007/08/22 06:11:56 tgl Exp $
@


1.2
log
@Fix VPATH-build problem in new tsearch makefile, per Chad Wagner.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.1 2007/08/21 01:11:18 tgl Exp $
d16 2
a17 1
DICTFILES=synonym.syn.sample thesaurus.ths.sample 
@


1.1
log
@Tsearch2 functionality migrates to core.  The bulk of this work is by
Oleg Bartunov and Teodor Sigaev, but I did a lot of editorializing,
so anything that's broken is probably my fault.

Documentation is nonexistent as yet, but let's land the patch so we can
get some portability testing done.
@
text
@d7 1
a7 1
# $PostgreSQL$
d34 1
a34 1
		do $(INSTALL_DATA) $$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i; \
@

