Skip to content

Commit

Permalink
add darwin-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hichtakk committed Dec 15, 2021
1 parent 4083ded commit 0b7a389
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME := nsxctl
RELEASE_DIR := build
BUILD_TARGETS := build-linux-amd64 build-linux-arm64 build-darwin-amd64
BUILD_TARGETS := build-linux-amd64 build-linux-arm64 build-darwin-amd64 build-darwin-arm64
GOVERSION = $(shell go version)
THIS_GOOS = $(word 1,$(subst /, ,$(lastword $(GOVERSION))))
THIS_GOARCH = $(word 2,$(subst /, ,$(lastword $(GOVERSION))))
Expand All @@ -20,9 +20,6 @@ lint: ## Examine source code and lint

all: $(BUILD_TARGETS) ## build for all platform

#build: ## build nsxctl
# go build -a -v -o ${RELEASE_DIR}/nsxctl ./main.go

build: $(RELEASE_DIR)/nsxctl_$(GOOS)_$(GOARCH) ## build nsxctl

build-linux-amd64: ## build AMD64 linux binary
Expand All @@ -34,6 +31,9 @@ build-linux-arm64: ## build ARM64 linux binary
build-darwin-amd64: ## build AMD64 darwin binary
@$(MAKE) build GOOS=darwin GOARCH=amd64

build-darwin-arm64: ## build AMD64 darwin binary
@$(MAKE) build GOOS=darwin GOARCH=arm64

$(RELEASE_DIR)/nsxctl_$(GOOS)_$(GOARCH): ## Build nsx command-line client
@printf "\e[32m"
@echo "==> Build nsxctl for ${GOOS}-${GOARCH}"
Expand Down

0 comments on commit 0b7a389

Please sign in to comment.