1 # contrib/unaccent/Makefile
9 DATA
= unaccent--1.1.sql unaccent--1.0
--1.1.sql unaccent--unpackaged--1.0.sql
10 DATA_TSEARCH
= unaccent.rules
11 PGFILEDESC
= "unaccent - text search dictionary that removes accents"
15 # We need a UTF8 database
21 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
24 subdir
= contrib
/unaccent
26 include $(top_builddir
)/src
/Makefile.global
27 include $(top_srcdir
)/contrib
/contrib-global.mk
30 update-unicode
: unaccent.rules
32 # Allow running this even without --with-python
35 unaccent.rules
: generate_unaccent_rules.py ..
/..
/src
/common
/unicode
/UnicodeData.txt Latin-ASCII.xml
36 $(PYTHON
) $< --unicode-data-file
$(word 2,$^
) --latin-ascii-file
$(word 3,$^
) >$@
38 # Only download it once; dependencies must match src/common/unicode/
39 ..
/..
/src
/common
/unicode
/UnicodeData.txt
: $(top_builddir
)/src
/Makefile.global
40 $(MAKE
) -C
$(@D
) $(@F
)
42 # Dependency on Makefile.global is for CLDR_VERSION
43 Latin-ASCII.xml
: $(top_builddir
)/src
/Makefile.global
44 $(DOWNLOAD
) https
://raw.githubusercontent.com
/unicode-org
/cldr
/release-
$(subst .
,-,$(CLDR_VERSION
))/common
/transforms
/Latin-ASCII.xml