-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (27 loc) · 903 Bytes
/
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
GOMOD=$(shell test -f "go.work" && echo "readonly" || echo "vendor")
CWD=$(shell pwd)
cli:
go build -mod $(GOMOD) -ldflags="-s -w" -o bin/server cmd/server/main.go
debug-protomaps:
go run -mod $(GOMOD) cmd/server/main.go \
-map-provider protomaps \
-protomaps-serve-tiles \
-protomaps-bucket-uri file://$(CWD)/fixtures \
-protomaps-database sfo \
-protomaps-paint-rules-uri file://$(CWD)/fixtures/protomaps.rules.paint.js \
-protomaps-label-rules-uri file://$(CWD)/fixtures/protomaps.rules.label.js \
-leaflet-enable-draw \
-javascript-at-eof \
-rollup-assets
debug-leaflet:
go run -mod $(GOMOD) cmd/server/main.go \
-map-provider leaflet \
-leaflet-tile-url https://tile.openstreetmap.org/{z}/{x}/{y}.png \
-leaflet-enable-draw \
-javascript-at-eof \
-rollup-assets
debug-null:
go run -mod $(GOMOD) cmd/server/main.go \
-map-provider null \
-javascript-at-eof \
-rollup-assets