2007-08-21 03:11:32 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for backend/tsearch
|
|
|
|
#
|
2016-01-02 19:33:40 +01:00
|
|
|
# Copyright (c) 2006-2016, PostgreSQL Global Development Group
|
2007-08-21 03:11:32 +02:00
|
|
|
#
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/backend/tsearch/Makefile
|
2007-08-21 03:11:32 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/tsearch
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
|
|
|
DICTDIR=tsearch_data
|
|
|
|
|
2016-03-04 18:08:10 +01:00
|
|
|
DICTFILES=dicts/synonym_sample.syn dicts/thesaurus_sample.ths \
|
|
|
|
dicts/hunspell_sample.affix \
|
|
|
|
dicts/ispell_sample.affix dicts/ispell_sample.dict \
|
|
|
|
dicts/hunspell_sample_long.affix dicts/hunspell_sample_long.dict \
|
|
|
|
dicts/hunspell_sample_num.affix dicts/hunspell_sample_num.dict
|
2007-08-21 03:11:32 +02:00
|
|
|
|
|
|
|
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 \
|
2008-09-19 21:03:41 +02:00
|
|
|
to_tsany.o ts_selfuncs.o ts_typanalyze.o ts_utils.o
|
2007-08-21 03:11:32 +02:00
|
|
|
|
2008-02-19 11:30:09 +01:00
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
2007-08-21 03:11:32 +02:00
|
|
|
|
|
|
|
.PHONY: install-data
|
|
|
|
install-data: $(DICTFILES) installdirs
|
2009-10-26 22:33:01 +01:00
|
|
|
$(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES)) '$(DESTDIR)$(datadir)/$(DICTDIR)/'
|
2007-08-21 03:11:32 +02:00
|
|
|
|
|
|
|
installdirs:
|
2009-08-27 00:24:44 +02:00
|
|
|
$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
|
2007-08-21 03:11:32 +02:00
|
|
|
|
|
|
|
.PHONY: uninstall-data
|
|
|
|
uninstall-data:
|
2009-10-26 22:33:01 +01:00
|
|
|
rm -rf $(addprefix '$(DESTDIR)$(datadir)/$(DICTDIR)/',$(DICTFILES))
|