Skip to content

Commit

Permalink
add option for arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
davidasnider authored and nmaupu committed Mar 10, 2019
1 parent af839b6 commit 0680965
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ vendor:
$(BIN)/freenas-provisioner build: vendor $(BIN) $(shell find . -name "*.go")
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner .

.PHONY: linuxarm
$(BIN)/freenas-provisioner-arm linuxarm: vendor $(BIN) $(shell find . -name "*.go")
env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner-arm .

.PHONY: darwin
$(BIN)/freenas-provisioner-darwin darwin: vendor $(BIN) $(shell find . -name "*.go")
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner-darwin .
Expand Down

0 comments on commit 0680965

Please sign in to comment.