From ae3e07336f3a86cfa51c3ea509976b3c07c755b2 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 8 Nov 2022 11:58:07 +0100 Subject: [PATCH] Fix Makefile with TARGET_DIR end with release folder --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba431224048..ac8932f6992 100644 --- a/Makefile +++ b/Makefile @@ -290,7 +290,11 @@ ifneq (, $(TARGET)) endif ifneq (, $(TARGET_DIR)) - target_dir := --target-dir "$(TARGET_DIR)" + target_dir := --target-dir $(TARGET_DIR) +endif + +ifeq (release, $(notdir $(TARGET_DIR))) + target_dir := --target-dir $(TARGET_DIR)/.. endif $(info -----------)