1 # contrib/unaccent/Makefile
9 DATA
= unaccent--1.1.sql unaccent--1.0
--1.1.sql
10 DATA_TSEARCH
= unaccent.rules
11 PGFILEDESC
= "unaccent - text search dictionary that removes accents"
17 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
20 subdir
= contrib
/unaccent
22 include $(top_builddir
)/src
/Makefile.global
23 include $(top_srcdir
)/contrib
/contrib-global.mk
26 update-unicode
: $(srcdir)/unaccent.rules
28 # Allow running this even without --with-python
33 $(srcdir)/unaccent.rules
: generate_unaccent_rules.py ..
/..
/src
/common
/unicode
/UnicodeData.txt Latin-ASCII.xml
34 $(PYTHON
) $< --unicode-data-file
$(word 2,$^
) --latin-ascii-file
$(word 3,$^
) >$@
36 # Only download it once; dependencies must match src/common/unicode/
37 ..
/..
/src
/common
/unicode
/UnicodeData.txt
: $(top_builddir
)/src
/Makefile.global
38 $(MAKE
) -C
$(@D
) $(@F
)
40 # Dependency on Makefile.global is for CLDR_VERSION
41 Latin-ASCII.xml
: $(top_builddir
)/src
/Makefile.global
42 $(DOWNLOAD
) https
://raw.githubusercontent.com
/unicode-org
/cldr
/release-
$(subst .
,-,$(CLDR_VERSION
))/common
/transforms
/Latin-ASCII.xml