Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
staaldraad committed May 3, 2020
1 parent 7a5a262 commit 19abcd8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 19abcd8

Please sign in to comment.