From ea2307790db3f23428932db4833928c4248c3004 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 8 Jan 2025 13:41:42 +0000 Subject: [PATCH] feat: set a target directory to build artifacts to --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 656b0847dd..c89c3cefb3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ KEEP_TEMPS ?= 0 # `File name`.gba FILE_NAME := pokeemerald BUILD_DIR := build +BINARY_DIR := target # Compares the ROM to a checksum of the original - only makes sense using when non-modern COMPARE ?= 0 @@ -60,7 +61,7 @@ endif CPP := $(PREFIX)cpp -ROM_NAME := $(FILE_NAME).gba +ROM_NAME := $(BINARY_DIR)/$(FILE_NAME).gba OBJ_DIR_NAME := $(BUILD_DIR)/modern OBJ_DIR_NAME_TEST := $(BUILD_DIR)/modern-test OBJ_DIR_NAME_DEBUG := $(BUILD_DIR)/modern-debug