From a211d4f78dcf75131faebd204505509c15df187c Mon Sep 17 00:00:00 2001 From: Areg Vrtanesyan Date: Thu, 24 Jul 2025 11:46:36 +0100 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dfef42a..b4e336b2 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ endif IMPORT_PATH := github.com/cloudflare/cloudflared PACKAGE_DIR := $(CURDIR)/packaging PREFIX := /usr -ifeq ($(LOCAL_OS),freebsd) +ifeq ($(shell go env GOOS),freebsd) PREFIX := /usr/local endif INSTALL_BINDIR := $(PREFIX)/bin