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 $< $@