Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mleone87 committed Jan 21, 2024
1 parent e8b4c30 commit a1c144a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,29 @@ 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

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 '^'
Expand Down

0 comments on commit a1c144a

Please sign in to comment.