mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-09 06:26:57 +02:00
a290378a37
This modernized version of Soundex works significantly better than the original, particularly for non-English names. Dag Lem, reviewed by quite a few people along the way Discussion: https://postgr.es/m/yger1atbgfy.fsf@sid.nimrod.no
41 lines
991 B
Makefile
41 lines
991 B
Makefile
# contrib/fuzzystrmatch/Makefile
|
|
|
|
MODULE_big = fuzzystrmatch
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
daitch_mokotoff.o \
|
|
dmetaphone.o \
|
|
fuzzystrmatch.o
|
|
|
|
EXTENSION = fuzzystrmatch
|
|
DATA = fuzzystrmatch--1.1.sql fuzzystrmatch--1.1--1.2.sql \
|
|
fuzzystrmatch--1.0--1.1.sql
|
|
|
|
PGFILEDESC = "fuzzystrmatch - similarities and distance between strings"
|
|
|
|
REGRESS = fuzzystrmatch fuzzystrmatch_utf8
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/fuzzystrmatch
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
# Force this dependency to be known even without dependency info built:
|
|
daitch_mokotoff.o: daitch_mokotoff.h
|
|
|
|
daitch_mokotoff.h: daitch_mokotoff_header.pl
|
|
$(PERL) $< $@
|
|
|
|
# daitch_mokotoff.h is included in tarballs, so it has to be made by
|
|
# "distprep" and not cleaned except by "maintainer-clean".
|
|
distprep: daitch_mokotoff.h
|
|
|
|
maintainer-clean:
|
|
rm -f daitch_mokotoff.h
|