-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
65 lines (52 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: all
all: unit lint geos pgscan cmppg cmpgeos
DC_RUN = \
docker compose \
--project-name sf-$$task \
--file .ci/compose-$$task.yaml \
up \
--abort-on-container-exit \
--build
.PHONY: lint
lint:
task=lint; $(DC_RUN)
.PHONY: unit
unit:
task=unit; $(DC_RUN)
.PHONY: pgscan
pgscan:
task=pgscan; $(DC_RUN)
.PHONY: cmppg
cmppg:
task=cmppg; $(DC_RUN)
.PHONY: cmpgeos
cmpgeos:
task=cmpgeos; $(DC_RUN)
DC_GEOS_RUN = \
docker compose \
--project-name sf-geos-$$(echo $$geos_version | sed 's/\./-/g') \
--file .ci/compose-geos.yaml \
up \
--build \
--abort-on-container-exit
.PHONY: geos-3.12
geos-3.12:
export tags='' alpine_version=3.19 geos_version=3.12.1-r0; $(DC_GEOS_RUN)
.PHONY: geos-3.11
geos-3.11:
export tags='' alpine_version=3.18 geos_version=3.11.2-r0; $(DC_GEOS_RUN)
.PHONY: geos-3.10
geos-3.10:
export tags='' alpine_version=3.16 geos_version=3.10.3-r0; $(DC_GEOS_RUN)
.PHONY: geos-3.9
geos-3.9:
export tags='' alpine_version=3.14 geos_version=3.9.1-r0; $(DC_GEOS_RUN)
.PHONY: geos-3.8
geos-3.8:
# Alpine 3.13 doesn't include a geos.pc file (needed by pkg-config). So
# the sfnopkgconfig tag is used, disabling the use of pkg-config.
# LDFLAGS are used to configure GEOS directly.
export tags='-tags sfnopkgconfig' \
alpine_version=3.13 geos_version=3.8.1-r2; $(DC_GEOS_RUN)
.PHONY: geos
geos: geos-3.12 geos-3.11 geos-3.10 geos-3.9 geos-3.8