]> git.r.bdr.sh - rbdr/mobius/blobdiff - Makefile
Share replacement code
[rbdr/mobius] / Makefile
index 2832baacbc8ddd67b6cb2668a893b94766aec910..54a86311fade589fe3316439d99504e5fb4126c2 100644 (file)
--- 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