mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-14 00:31:42 +08:00
19 lines
304 B
Makefile
19 lines
304 B
Makefile
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
|
|
|