| 1 |
#------------------------------------------------------------------------- |
| 2 |
# |
| 3 |
# Makefile for backend/tsearch |
| 4 |
# |
| 5 |
# Copyright (c) 2006-2025, 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 |
# List of dictionaries files |
| 17 |
DICTFILES=synonym_sample.syn thesaurus_sample.ths \ |
| 18 |
hunspell_sample.affix \ |
| 19 |
ispell_sample.affix ispell_sample.dict \ |
| 20 |
hunspell_sample_long.affix hunspell_sample_long.dict \ |
| 21 |
hunspell_sample_num.affix hunspell_sample_num.dict |
| 22 |
|
| 23 |
# Local paths to dictionaries files |
| 24 |
DICTFILES_PATH=$(addprefix dicts/,$(DICTFILES)) |
| 25 |
|
| 26 |
OBJS = \ |
| 27 |
dict.o \ |
| 28 |
dict_ispell.o \ |
| 29 |
dict_simple.o \ |
| 30 |
dict_synonym.o \ |
| 31 |
dict_thesaurus.o \ |
| 32 |
regis.o \ |
| 33 |
spell.o \ |
| 34 |
to_tsany.o \ |
| 35 |
ts_locale.o \ |
| 36 |
ts_parse.o \ |
| 37 |
ts_selfuncs.o \ |
| 38 |
ts_typanalyze.o \ |
| 39 |
ts_utils.o \ |
| 40 |
wparser.o \ |
| 41 |
wparser_def.o |
| 42 |
|
| 43 |
include $(top_srcdir)/src/backend/common.mk |
| 44 |
|
| 45 |
.PHONY: install-data |
| 46 |
install-data: $(DICTFILES_PATH) installdirs |
| 47 |
$(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES_PATH)) '$(DESTDIR)$(datadir)/$(DICTDIR)/' |
| 48 |
|
| 49 |
installdirs: |
| 50 |
$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)' |
| 51 |
|
| 52 |
.PHONY: uninstall-data |
| 53 |
uninstall-data: |
| 54 |
rm -rf $(addprefix '$(DESTDIR)$(datadir)/$(DICTDIR)/',$(DICTFILES)) |