From 9373e77636bf8a1cdb8be00aa319a8e615275e7e Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 22 Sep 2022 11:01:40 -0300 Subject: [PATCH] Update Makefile as per the tutorial, enhance it --- examples/stm32/stm32-nucleo-f746z/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/stm32/stm32-nucleo-f746z/Makefile b/examples/stm32/stm32-nucleo-f746z/Makefile index 92b4174e..e067c811 100644 --- a/examples/stm32/stm32-nucleo-f746z/Makefile +++ b/examples/stm32/stm32-nucleo-f746z/Makefile @@ -1,9 +1,17 @@ NAME ?= $(notdir $(CURDIR)) -build: +$(NAME): git clone --depth 1 https://github.com/mongoose-examples/$(NAME) + +build: | $(NAME) cp ./../../../mongoose.[ch] $(NAME)/Middlewares/Third_Party/Mongoose/ make -C $(NAME) build clean: rm -rf $(NAME) + +flash: + make -C $(NAME) flash + +.PHONY: flash +