makefile: Run clean before running build
This commit is contained in:
2
Makefile
2
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 $< $@
|
||||
|
||||
Reference in New Issue
Block a user