Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.645 kb
# contrib/kmeans/Makefile
MODULES = kmeans
EXTENSION = $(MODULES)
EXTVERSION = 1.1.0
EXTSQL = $(MODULES)--$(EXTVERSION).sql
DATA_built = $(MODULES).sql
DATA = uninstall_$(MODULES).sql
DOCS = doc/$(MODULES).md
REGRESS = $(MODULES)
SQL_IN = $(MODULES).sql.in
EXTRA_CLEAN = sql/$(MODULES).sql expected/$(MODULES).out
USE_EXTENSION = $(shell pg_config --version | grep -qE " 8\.|9\.0" && echo no || echo yes)
ifeq ($(USE_EXTENSION),yes)
all: $(EXTSQL)
$(EXTSQL): $(EXTENSION).sql
cp $< $@
DATA = $(EXTSQL)
EXTRA_CLEAN += $(EXTSQL)
endif
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
Jump to Line
Something went wrong with that request. Please try again.