diff --git a/Makefile b/Makefile index 76aa6d45..5ec1ba1f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,5 @@ PHP_VERSION = 8.4.16 -GORELEASER_ID ?= upsun - -ifeq ($(GOOS), darwin) - GORELEASER_ID=$(GORELEASER_ID)-macos -endif - GOOS := $(shell uname -s | tr '[:upper:]' '[:lower:]') GOARCH := $(shell uname -m) ifeq ($(GOARCH), x86_64) @@ -15,6 +9,14 @@ ifeq ($(GOARCH), aarch64) GOARCH=arm64 endif +FLAVOR ?= upsun + +ifeq ($(GOOS), darwin) + GORELEASER_ID = $(FLAVOR)-macos +else + GORELEASER_ID = $(FLAVOR) +endif + VERSION := $(shell git describe --always) # Tooling versions