add build style

This commit is contained in:
谢小军
2019-09-16 11:49:47 +08:00
parent 0cf8d1ab49
commit d721ec1ebd
2 changed files with 13 additions and 0 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
mac:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go

5
gogenerate.go Normal file
View File

@@ -0,0 +1,5 @@
package main
//go:generate make mac
//go:generate make windows
//go:generate make linux