Skip to content

Commit

Permalink
fixup! Makefile: build darwin-arm64 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
doanac committed Nov 16, 2021
1 parent 5b017df commit cb31122
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ linter:=$(shell which golangci-lint 2>/dev/null || echo $(HOME)/go/bin/golangci-
build: fioctl-linux-amd64 fioctl-windows-amd64 fioctl-darwin-amd64 fioctl-darwin-arm64
@true

fioctl-darwin-arm64:
CGO_ENABLED=1 \
GOOS=$(shell echo $* | cut -f1 -d\- ) \
GOARCH=$(shell echo $* | cut -f2 -d\-) \
go build $(LDFLAGS) -o bin/$@ main.go

fioctl-linux-amd64:
fioctl-linux-armv7:
fioctl-windows-amd64:
fioctl-darwin-amd64:
fioctl-darwin-arm64:
fioctl-%:
GOOS=$(shell echo $* | cut -f1 -d\- ) \
GOARCH=$(shell echo $* | cut -f2 -d\-) \
Expand Down

0 comments on commit cb31122

Please sign in to comment.