From efcf95d2bc3bd3acdc8a08fc776a62d38bc6dc8d Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Wed, 8 May 2019 14:58:48 +0200 Subject: [PATCH] instructions for building the mapserver locally --- doc/building.md | 28 ++++++++++++++++++++++++++++ readme.md | 1 + 2 files changed, 29 insertions(+) create mode 100644 doc/building.md diff --git a/doc/building.md b/doc/building.md new file mode 100644 index 0000000..d4eab4f --- /dev/null +++ b/doc/building.md @@ -0,0 +1,28 @@ + +# Building the mapserver + +Instructions to build the mapserver from source + +## Build dependencies + +* go >= 1.11 + +Ubuntu install: https://github.com/golang/go/wiki/Ubuntu + +## Compile + + +Working directory: */server* + +```bash +# generate the static web files +go generate + +# build the binary for the current playtform +go build + +# (optionally) run the unit-tests +go test ./... + +``` + diff --git a/readme.md b/readme.md index 97be522..c5251dd 100644 --- a/readme.md +++ b/readme.md @@ -12,6 +12,7 @@ Realtime mapserver for [Minetest](https://minetest.net) # Documentation * [Installation](doc/install.md) +* [Building](doc/building.md) * [Mapserver mod](doc/mod.md) * [Parameters](doc/params.md) * [Search](doc/search.md)