@@ -13,11 +13,15 @@ include $(top_builddir)/src/Makefile.global
1313
1414DICTDIR =tsearch_data
1515
16- DICTFILES =dicts/synonym_sample.syn dicts/thesaurus_sample.ths \
17- dicts/hunspell_sample.affix \
18- dicts/ispell_sample.affix dicts/ispell_sample.dict \
19- dicts/hunspell_sample_long.affix dicts/hunspell_sample_long.dict \
20- dicts/hunspell_sample_num.affix dicts/hunspell_sample_num.dict
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 ) )
2125
2226OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
2327 dict_simple.o dict_synonym.o dict_thesaurus.o \
@@ -27,8 +31,8 @@ OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
2731include $(top_srcdir ) /src/backend/common.mk
2832
2933.PHONY : install-data
30- install-data : $(DICTFILES ) installdirs
31- $(INSTALL_DATA ) $(addprefix $(srcdir ) /,$(DICTFILES ) ) ' $(DESTDIR)$(datadir)/$(DICTDIR)/'
34+ install-data : $(DICTFILES_PATH ) installdirs
35+ $(INSTALL_DATA ) $(addprefix $(srcdir ) /,$(DICTFILES_PATH ) ) ' $(DESTDIR)$(datadir)/$(DICTDIR)/'
3236
3337installdirs :
3438 $(MKDIR_P ) ' $(DESTDIR)$(datadir)' ' $(DESTDIR)$(datadir)/$(DICTDIR)'
0 commit comments