From 7e1d4325ecf51e376f80de754f608892f8a5d9ab Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 24 Jul 2021 08:45:51 +0100 Subject: [PATCH] Fail examples target if any example fails --- Makefile | 2 +- examples/stm32-freertos-tcp/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3411ba5a..95c8b39d 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ endif all: mg_prefix test test++ ex vc98 vc2017 mingw mingw++ linux linux++ infer fuzz ex: - @for X in $(EXAMPLES); do $(MAKE) -C $$X $(EXAMPLE_TARGET); done + @for X in $(EXAMPLES); do $(MAKE) -C $$X $(EXAMPLE_TARGET) || break; done # Check that all external (exported) symbols have "mg_" prefix mg_prefix: mongoose.c mongoose.h diff --git a/examples/stm32-freertos-tcp/Makefile b/examples/stm32-freertos-tcp/Makefile index bb7cdca0..096c65b1 100644 --- a/examples/stm32-freertos-tcp/Makefile +++ b/examples/stm32-freertos-tcp/Makefile @@ -52,7 +52,7 @@ SOURCES += $(FREERTOS_PLUS_TCP_PATH)/portable/NetworkInterface/STM32Fxx/stm32fxx OBJECTS = obj/boot.o $(SOURCES:%.c=obj/%.o) -all: $(PROG).hex +example: $(PROG).hex $(PROG).bin: $(PROG).elf $(DOCKER) arm-none-eabi-objcopy -O binary $< $@