2019-01-05 19:21:24 +03:00
|
|
|
|
2019-01-11 12:49:19 +03:00
|
|
|
STATIC_VFS=vfs/static.go
|
|
|
|
|
|
|
|
test: $(STATIC_VFS)
|
2019-01-05 19:21:24 +03:00
|
|
|
go test ./...
|
|
|
|
|
2019-01-21 21:18:07 +03:00
|
|
|
clean:
|
|
|
|
rm $(STATIC_VFS)
|
|
|
|
rm mapserver
|
|
|
|
|
2019-01-11 12:49:19 +03:00
|
|
|
$(STATIC_VFS):
|
2019-01-11 12:50:15 +03:00
|
|
|
go get github.com/mjibson/esc
|
2019-01-11 12:49:19 +03:00
|
|
|
${HOME}/go/bin/esc -o $@ -prefix="static/" -pkg vfs static
|
|
|
|
|
|
|
|
build: $(STATIC_VFS)
|
2019-01-08 10:47:28 +03:00
|
|
|
go build
|
2019-01-17 17:59:59 +03:00
|
|
|
|
|
|
|
profile:
|
|
|
|
go test -cpuprofile=cprof ./tilerenderer
|
|
|
|
go tool pprof --text cprof
|