diff --git a/examples/raspberry/raspberry-pi-pico-w/Makefile b/examples/raspberry/raspberry-pi-pico-w/Makefile index 7161ebd0..4e1f3674 100644 --- a/examples/raspberry/raspberry-pi-pico-w/Makefile +++ b/examples/raspberry/raspberry-pi-pico-w/Makefile @@ -1,9 +1,12 @@ NAME = raspberry-pi-pico-w -build: +$(NAME): git clone --depth 1 https://github.com/mongoose-examples/$(NAME) + +build: | $(NAME) cp ./../../../mongoose.[ch] $(NAME) make -C $(NAME) build clean: + make -C $(NAME) clean rm -rf $(NAME)