X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/4fa4a57c4352f703958c3c5cb8dcd2b56cb35882..6d81feb101da689092d3370c1dc55be89e11fd35:/Makefile diff --git a/Makefile b/Makefile index 2832baa..54a8631 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,2 @@ server: - go build -o mobius-hotline-server cmd/mobius-hotline-server/main.go - -client: - go build -o mobius-hotline-client cmd/mobius-hotline-client/main.go \ No newline at end of file + go build -ldflags "-X main.version=$$(git describe --exact-match --tags || echo "dev" ) -X main.commit=$$(git rev-parse --short HEAD)" -o mobius-hotline-server cmd/mobius-hotline-server/main.go