From 88a8c81415b995390da470d8ef416cacc74136af Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Sat, 30 Jan 2021 21:30:49 +0100 Subject: [PATCH] build: Improve makefile error output --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb7858e..d46d4d9 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ $(OUTPUT_DIR)/$(1)_$(2)_$(3)_$(4)_$(VERSION).OBJ : $(ASM_SRC) $(ASM_INC) "DEFINE(FETON_DELAY=$(_DEADTIME)) "\ "DEFINE(PWM_FREQ=$(_PWM_FREQ)) "\ "OBJECT($$@) "\ - "$(AX51_FLAGS)" > $(_LOG) 2>&1 || (grep "\*\*\* ERROR" Bluejay.LST; mv ./Bluejay.LST $(OUTPUT_DIR)/; exit 1) + "$(AX51_FLAGS)" > $(_LOG) 2>&1 || (grep -B 3 -E "\*\*\* (ERROR|WARNING)" Bluejay.LST; mv ./Bluejay.LST $(OUTPUT_DIR)/; exit 1) @mv ./Bluejay.LST $(OUTPUT_DIR)/ endef