Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Updated type of build to apple slicon.
Browse files Browse the repository at this point in the history
  • Loading branch information
hinoshiba committed Nov 29, 2021
1 parent 5701d3f commit 7a01c8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOMOD=$(GOENV) go mod

BUILD_FLGS=-a -tags netgo -installsuffix netgo -ldflags='-extldflags="static"'
BUILD_FLGS= -tags netgo -installsuffix netgo -ldflags='-extldflags="static"'
WIN_OPT=GO111MODULE=on CGO_ENABLED=1 GOOS=windows GOARCH=amd64
MAC_OPT=GO111MODULE=on CGO_ENABLED=1 GOOS=darwin GOARCH=amd64
MAC_OPT=GO111MODULE=on GOOS=darwin GOARCH=arm64

SRCS := $(shell find . -name '*.go' -type f)
BINS := $(shell test -d ./bin && find ./bin/ -type f)
Expand All @@ -32,7 +32,7 @@ clean: $(BINS) ## cleanup
build-windows: ## build to windows binary
cd $(CURDIR)/$(PRJ); $(WIN_OPT) $(GOBUILD) $(BUILD_FLGS) $(NAME)/exec/...
build-mac: ## build to mac binary
cd $(CURDIR)/$(PRJ); $(MAC_OPT) $(GOBUILD) $(BUILD_FLGS) goplay/exec/...
cd $(CURDIR)/$(PRJ); $(MAC_OPT) $(GOBUILD) $(BUILD_FLGS) $(NAME)/exec/...

mod: $(CURDIR)/$(PRJ)/go.mod ## mod ensure
cd $(CURDIR)/$(PRJ); $(GOMOD) tidy
Expand Down

0 comments on commit 7a01c8a

Please sign in to comment.