mirror of
https://github.com/Telmate/terraform-provider-proxmox.git
synced 2025-12-18 22:46:04 -05:00
fix makefile
This commit is contained in:
parent
e8b4c30fa7
commit
a1c144ad11
1 changed files with 8 additions and 9 deletions
17
Makefile
17
Makefile
|
|
@ -41,21 +41,20 @@ CURRENT_TAG_MINOR := "v$(CURRENT_VERSION_MINOR)"
|
|||
CURRENT_TAG_MAJOR := "v$(CURRENT_VERSION_MAJOR)"
|
||||
|
||||
# Determine KERNEL and ARCH
|
||||
UNAME_S=$(shell uname -s)
|
||||
UNAME_M=$(shell uname -m)
|
||||
UNAME_S:=$(shell uname -s)
|
||||
UNAME_M:=$(shell uname -m)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
KERNEL=linux
|
||||
KERNEL:=linux
|
||||
else ifeq ($(UNAME_S),Darwin)
|
||||
KERNEL=darwin
|
||||
KERNEL:=darwin
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME_M),x86_64)
|
||||
ARCH=amd64
|
||||
else ifeq ($(UNAME_M),arm64)
|
||||
ARCH:=arm64
|
||||
endif
|
||||
|
||||
KERNEL=$(l_uname_s)
|
||||
ARCH=$(l_uname_m)
|
||||
|
||||
.PHONY: build info fmt vet test clean install acctest local-dev-install
|
||||
|
||||
all: build
|
||||
|
|
@ -63,8 +62,8 @@ all: build
|
|||
info:
|
||||
@echo "Global info"
|
||||
@echo "$(KERNEL)"
|
||||
@echo "$(ARCH)"
|
||||
|
||||
@echo "$(ARCH)"
|
||||
|
||||
fmt:
|
||||
@echo " -> checking code style"
|
||||
@! gofmt -d $(shell find . -path ./vendor -prune -o -name '*.go' -print) | grep '^'
|
||||
|
|
|
|||
Loading…
Reference in a new issue