fix makefile

This commit is contained in:
mleone87 2024-01-21 11:43:02 +01:00
parent e8b4c30fa7
commit a1c144ad11

View file

@ -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 '^'