Skip to content

Commit

Permalink
Fix make install on arm machines
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Nov 14, 2024
1 parent 92de632 commit 6425370
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,32 @@ NAMESPACE=tsuru
NAME=rpaas
BINARY=terraform-provider-${NAME}
VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | tr -d v)
OS_ARCH=$(shell go env GOOS)_$(shell go env GOARCH)
UNAME_S := $(shell uname -s)
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_S),Linux)
OS := linux
UNAME_P := $(shell uname -m)
endif
ifeq ($(UNAME_S),Darwin)
OS := darwin
UNAME_P := $(shell uname -m)
endif

ifeq ($(UNAME_P),x86_64)
ARCH := amd64
endif

ifneq ($(filter %86,$(UNAME_P)),)
ARCH := 386
endif
ifneq ($(filter arm%,$(UNAME_P)),)
ARCH := arm
endif
ifeq ($(UNAME_P),arm64)
ARCH := arm64
endif

OS_ARCH=${OS}_${ARCH}

TFPLUGINDOCS_VERSION ?= v0.16.0

Expand Down

0 comments on commit 6425370

Please sign in to comment.