]> granicus.if.org Git - postgresql/blob - src/backend/tsearch/Makefile
Update copyright notices for year 2012.
[postgresql] / src / backend / tsearch / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for backend/tsearch
4 #
5 # Copyright (c) 2006-2012, PostgreSQL Global Development Group
6 #
7 # src/backend/tsearch/Makefile
8 #
9 #-------------------------------------------------------------------------
10 subdir = src/backend/tsearch
11 top_builddir = ../../..
12 include $(top_builddir)/src/Makefile.global
13
14 DICTDIR=tsearch_data
15
16 DICTFILES=synonym_sample.syn thesaurus_sample.ths hunspell_sample.affix \
17         ispell_sample.affix ispell_sample.dict
18
19 OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
20         dict_simple.o dict_synonym.o dict_thesaurus.o \
21         dict_ispell.o regis.o spell.o \
22         to_tsany.o ts_selfuncs.o ts_typanalyze.o ts_utils.o
23
24 include $(top_srcdir)/src/backend/common.mk
25
26 .PHONY: install-data
27 install-data: $(DICTFILES) installdirs
28         $(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES)) '$(DESTDIR)$(datadir)/$(DICTDIR)/'
29
30 installdirs:
31         $(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
32
33 .PHONY: uninstall-data
34 uninstall-data:
35         rm -rf $(addprefix '$(DESTDIR)$(datadir)/$(DICTDIR)/',$(DICTFILES))