From 19abcd8f95799938cda5cea8c628a000bf8f7479 Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Sun, 3 May 2020 11:51:17 +0200 Subject: [PATCH] Add Makefile --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..98317f3 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +build: + go build -o ruler ruler.go + +run: + go run ruler.go + +compile: + # 32-bit + # Linux + GOOS=linux GOARCH=386 go build -o ruler-linux86 + sha256sum ruler-linux86 + # Windows + GOOS=windows GOARCH=386 go build -o ruler-win86.exe + sha256sum ruler-win86.exe + # OSX + GOOS=darwin GOARCH=386 go build -o ruler-osx86 + sha256sum ruler-osx86 + + # 64-bit + # Linux + GOOS=linux GOARCH=amd64 go build -o ruler-linux64 + sha256sum ruler-linux64 + # Windows + GOOS=windows GOARCH=amd64 go build -o ruler-win64.exe + sha256sum ruler-win64.exe + # OSX + GOOS=darwin GOARCH=amd64 go build -o ruler-osx64 + sha256sum ruler-osx64 \ No newline at end of file