From 6eea0cba390550d9d92592d74c06753b4cf97574 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 5 Jul 2023 17:01:00 +0200 Subject: [PATCH] Build: Makefile add clean --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1971f91..4a8c8a2 100644 --- a/Makefile +++ b/Makefile @@ -3,17 +3,20 @@ OCD_BIN=/opt/local/bin/openocd OCD_SCRIPTS=/opt/local/share/openocd/scripts OCD_BOARD=stm32f4discovery.cfg -PHONY: all compile run +.PHONY: all compile run clean -all: compile run +all: run compile: cmake --build cmake-build-debug --verbose -run: +run: compile $(OCD_BIN) -s $(OCD_SCRIPTS) -f board/$(OCD_BOARD) \ -c "tcl_port disabled" \ -c "gdb_port disabled" \ -c "program ./cmake-build-debug/raw407cxx.elf" \ -c reset \ - -c shutdown \ No newline at end of file + -c shutdown + +clean: + cmake --build cmake-build-debug --verbose -t clean \ No newline at end of file