-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (17 loc) · 644 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Configurable parts
SQL_MODULE := postgis
EXTRA_FILES := LICENSE LICENSE-postgis.txt NOTICE
CUSTOM_SQL_BUILD := 1
### Boilerplate
PYTHON ?= python3
EDB ?= $(PYTHON) -m edb.tools $(EDBFLAGS)
MKS ?= $(shell $(EDB) config --make-include)
include $(MKS)
### End Boilerplate
$(SQL_BUILD_STAMP): MANIFEST.toml postgis/NEWS Makefile
cd postgis && sh autogen.sh
cd postgis && ./configure "--with-pgconfig=$(PG_CONFIG)" --without-raster
env PG_CONFIG=$(PG_CONFIG) $(MAKE) -C postgis
env PG_CONFIG=$(PG_CONFIG) $(MAKE) -C postgis comments
env PG_CONFIG=$(PG_CONFIG) $(MAKE) -C postgis DESTDIR=$(PWD)/build/out install
touch $(SQL_BUILD_STAMP)