]> git.r.bdr.sh - rbdr/mobius/blobdiff - Makefile
Account for the root
[rbdr/mobius] / Makefile
index fb14198b4935e72abdd89c08f6ee5cae43adf9ca..54a86311fade589fe3316439d99504e5fb4126c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,2 @@
-build-client:
-       go build -o mobius-hotline-client client/main.go
-
-build-server:
-       go build -o mobius-hotline-server server/main.go
+server:
+       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