From 4d014570b599798f7504b51c39a72b7ade3742cf Mon Sep 17 00:00:00 2001 From: andreika-git Date: Mon, 12 Feb 2024 16:53:38 +0200 Subject: [PATCH] help make clean https://github.com/rusefi/rusefi/issues/5931 --- firmware/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/Makefile b/firmware/Makefile index 43acd8a64d..b94fb2a22e 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -162,9 +162,11 @@ MAKEFLAGS += ${NUMJOBS} BOARDINC = $(BOARD_DIR) include $(BOARD_DIR)/board.mk BOARDCPPSRC += $(BOARDS_DIR)/board_id.cpp +ifeq (,$(filter clean,$(MAKECMDGOALS))) ifeq ($(SHORT_BOARD_NAME),) $(error SHORT_BOARD_NAME not set, something wrong with your meta-info.env file) endif +endif DDEFS += -DSHORT_BOARD_NAME=$(SHORT_BOARD_NAME) # Include various ChibiOS mk files