]> git.r.bdr.sh - rbdr/mobius/blobdiff - Makefile
Ignore generated packages
[rbdr/mobius] / Makefile
index fb14198b4935e72abdd89c08f6ee5cae43adf9ca..9d31202760069bf6468c34a2589a86b4c469d393 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,3 +3,10 @@ build-client:
 
 build-server:
        go build -o mobius-hotline-server server/main.go
+
+windows_amd64_target=dist/mobius_server_windows_amd64
+build-win-amd64-server:
+       mkdir $(windows_amd64_target) ; true
+       cp -r cmd/mobius-hotline-server/mobius/config $(windows_amd64_target)
+       GOOS=windows GOARCH=amd64 go build -o $(windows_amd64_target)/mobius-hotline-server.exe  cmd/mobius-hotline-server/main.go
+       zip -r dist/mobius_server_windows_amd64.zip $(windows_amd64_target)
\ No newline at end of file