Added command for flashing the images via the bootloader

This commit is contained in:
Kristian Sloth Lauszus
2018-05-02 02:31:39 +02:00
parent a2fae5bbef
commit 2214f00667
3 changed files with 10 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ ifeq ($(INTERACTIVE),1)
color_purple = \033[38;5;097m
endif
.PHONY: all clean
.PHONY: all clean flash
# The default rule, which causes the project to be built.
all: $(PROJECT_OBJ)
@@ -160,6 +160,9 @@ clean:
@rm -rf $(BUILD_DIR) $(wildcard *~)
@echo "$(color_red)Done cleaning!$(color_default)"
flash: all
@$(FLASH_CMD) || exit 1
# Rebuild all objects when the Makefile changes.
$(OBJS): Makefile