Workaround for LOCAL_OS in PREFIX selection as it is not defined it yet.

Line 86 for "LOCAL_OS ?= $(shell go env GOOS)" could be moved ahead for cleaner code.
This commit is contained in:
Areg Vrtanesyan 2025-07-24 11:46:36 +01:00
parent c58b267df8
commit a211d4f78d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ endif
IMPORT_PATH := github.com/cloudflare/cloudflared IMPORT_PATH := github.com/cloudflare/cloudflared
PACKAGE_DIR := $(CURDIR)/packaging PACKAGE_DIR := $(CURDIR)/packaging
PREFIX := /usr PREFIX := /usr
ifeq ($(LOCAL_OS),freebsd) ifeq ($(shell go env GOOS),freebsd)
PREFIX := /usr/local PREFIX := /usr/local
endif endif
INSTALL_BINDIR := $(PREFIX)/bin INSTALL_BINDIR := $(PREFIX)/bin