diff --git a/examples/stm32/stm32-nucleo-f746zg/Makefile b/examples/stm32/stm32-nucleo-f746zg/Makefile new file mode 100644 index 00000000..a6d5a013 --- /dev/null +++ b/examples/stm32/stm32-nucleo-f746zg/Makefile @@ -0,0 +1,18 @@ +NAME ?= $(notdir $(CURDIR)) + +$(NAME): + git clone --depth 1 https://github.com/mongoose-examples/$(NAME) + +build: | $(NAME) + cp ./../../../mongoose.c $(NAME)/Core/Src/ + cp ./../../../mongoose.h $(NAME)/Core/Inc/ + make -C $(NAME) build + +clean: + rm -rf $(NAME) + +flash: + make -C $(NAME) flash + +.PHONY: flash +