From d721ec1ebd03b22b387825042677d1a3ae5fbda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=8F=E5=86=9B?= Date: Mon, 16 Sep 2019 11:49:47 +0800 Subject: [PATCH] add build style --- Makefile | 8 ++++++++ gogenerate.go | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 Makefile create mode 100644 gogenerate.go diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..72e2c9c --- /dev/null +++ b/Makefile @@ -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 + + diff --git a/gogenerate.go b/gogenerate.go new file mode 100644 index 0000000..f421199 --- /dev/null +++ b/gogenerate.go @@ -0,0 +1,5 @@ +package main + +//go:generate make mac +//go:generate make windows +//go:generate make linux