From c84cf622f1fd50565baf1f1ac91b2fa82c15d21d Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Fri, 2 Aug 2024 13:35:29 +0200 Subject: [PATCH] makefile: Run `clean` before running `build` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4fb5a66..de2b9b0 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ ASM_FILES := $(patsubst $(BUILD_DIR)/%.i,$(BUILD_DIR)/%.S,$(PREP_FILES)) OBJ_FILES := $(patsubst $(BUILD_DIR)/%.S,$(BUILD_DIR)/%.o,$(ASM_FILES)) .PHONY: build -build: builddir preprocess compile assemble $(BUILD_DIR)/$(TARGET).elf +build: clean builddir preprocess compile assemble $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).bin: $(BUILD_DIR)/$(TARGET).elf arm-none-eabi-objcopy -O binary $< $@