Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (21 sloc) 0.583 kb
048c675 Josh Kupershmidt initial commit
authored
1 MODULES = prioritize
2 EXTENSION = $(MODULES)
cd29032 Josh Kupershmidt few fixes to the build process and versioning.
authored
3 EXTVERSION = 1.0
048c675 Josh Kupershmidt initial commit
authored
4 EXTSQL = $(MODULES)--$(EXTVERSION).sql
5
6 DATA_built = $(MODULES).sql
7 DATA = uninstall_$(MODULES).sql
cd29032 Josh Kupershmidt few fixes to the build process and versioning.
authored
8 DOCS = README.md
048c675 Josh Kupershmidt initial commit
authored
9 REGRESS = $(MODULES)
10
11 SQL_IN = $(MODULES).sql.in
12 EXTRA_CLEAN = sql/$(MODULES).sql expected/$(MODULES).out
13
14 USE_EXTENSION = $(shell pg_config --version | grep -qE " 8\.|9\.0" && echo no || echo yes)
15
16 ifeq ($(USE_EXTENSION),yes)
17 all: $(EXTSQL)
18
19 $(EXTSQL): $(EXTENSION).sql
20 cp $< $@
21 DATA = $(EXTSQL)
22 EXTRA_CLEAN += $(EXTSQL)
23 endif
24
25 PG_CONFIG = pg_config
26 PGXS := $(shell $(PG_CONFIG) --pgxs)
27 include $(PGXS)
Something went wrong with that request. Please try again.