From cc240dc13d0be7142d1423986811ecd2704ca7a1 Mon Sep 17 00:00:00 2001 From: vo13crabs Date: Sun, 6 Mar 2022 01:27:24 +0700 Subject: [PATCH] add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6884961 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +name=verochka + +run: + go run main.go + +test: + go test + +build: + rm -rf bin + GOOS=linux GOARCH=amd64 go build -o bin/$(name)_linux_amd64 main.go + GOOS=darwin GOARCH=amd64 go build -o bin/$(name)_macos_amd64 main.go + GOOS=darwin GOARCH=arm64 go build -o bin/$(name)_macos_arm64 main.go + GOOS=windows GOARCH=amd64 go build -o bin/$(name)_windows_amd64.exe main.go