Skip to content

Commit

Permalink
tweak Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenz9 committed Oct 31, 2019
1 parent 9ecdacb commit ab468b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
PLATFORMS := linux/amd64 windows/amd64 darwin/amd64 linux/arm64

temp = $(subst /, ,$@)
os = $(word 1, $(temp))
arch = $(word 2, $(temp))

defualt: build

build:
GO111MODULE=on go build -o sia_exporter *.go

install:
GO111MODULE=on go install -o sia_exporter *.go

release: $(PLATFORMS)

$(PLATFORMS):
GO111MODULE=on GOOS=$(os) GOARCH=$(arch) go build -o 'sia_exporter-$(os)-$(arch)' *.go

0 comments on commit ab468b8

Please sign in to comment.