From 0085ca78fd690e769f216503489b984414953a41 Mon Sep 17 00:00:00 2001 From: MrFastwind Date: Thu, 23 Jul 2026 20:53:06 +0200 Subject: [PATCH] fix: use absolute paths for dev-deploy directories in Makefile Relative paths resolved differently from project root vs backend/ CWD, causing the stub arma3server_x64 to be copied to the wrong location. Use $(abspath ...) so all paths are absolute and CWD-independent. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index efb5478..92a95f7 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ .PHONY: backend frontend build run clean dev test test-backend test-frontend -# Default paths for dev — override via env -SERVERFILE_DIR ?= ../dev-deploy/serverfiles -MODS_DIR ?= ../dev-deploy/serverfiles/mods -CFG_DIR ?= ../dev-deploy/serverfiles/cfg -PROFILES_DIR ?= ../dev-deploy/serverfiles/profiles -DATA_DIR ?= ../dev-deploy/data +# Default paths for dev — override via env (absolute to avoid CWD mismatches) +SERVERFILE_DIR ?= $(abspath ../dev-deploy/serverfiles) +MODS_DIR ?= $(abspath ../dev-deploy/serverfiles/mods) +CFG_DIR ?= $(abspath ../dev-deploy/serverfiles/cfg) +PROFILES_DIR ?= $(abspath ../dev-deploy/serverfiles/profiles) +DATA_DIR ?= $(abspath ../dev-deploy/data) # Server/steamcmd overrides — set to use stubs in dev SERVER_BINARY ?= arma3server_x64