From 9e5503dd04a81b92f69f4644855b16b3385fec69 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Mon, 12 Sep 2022 17:29:47 -0300 Subject: [PATCH] Update Makefile as per the tutorial --- examples/stm32/stm32-nucleo-f429z/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/stm32/stm32-nucleo-f429z/Makefile b/examples/stm32/stm32-nucleo-f429z/Makefile index 92b4174e..e067c811 100644 --- a/examples/stm32/stm32-nucleo-f429z/Makefile +++ b/examples/stm32/stm32-nucleo-f429z/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 +