From 1c89baa8d167ece127a43755b8896c2529c6ab5f Mon Sep 17 00:00:00 2001 From: Daniel Bergman Date: Thu, 26 Jun 2025 20:48:03 +0200 Subject: [PATCH 1/2] Update Makefile to conditionally require BOARD and DISPLAY only for non-clean targets --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index c4a9c20e..94b4c129 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ define n endef +# Only require BOARD and DISPLAY for non-clean targets +ifeq (,$(filter clean,$(MAKECMDGOALS))) ifndef BOARD $(error Build failed: BOARD not defined. Use one of the four options below, depending on your hardware:$n$n make BOARD=sensorwatch_red DISPLAY=display_type$n make BOARD=sensorwatch_blue DISPLAY=display_type$n make BOARD=sensorwatch_pro DISPLAY=display_type$n$n) endif @@ -41,6 +43,7 @@ else $(error Build failed: invalid DISPLAY type. Use one of the options below, depending on your hardware:$n$n make BOARD=board_type DISPLAY=classic$n make BOARD=board_type DISPLAY=custom$n$n) endif endif +endif ifdef NOSLEEP DEFINES += -DMOVEMENT_LOW_ENERGY_MODE_FORBIDDEN From 0b7f53f99da7f1f2454992e1726364998a4d32aa Mon Sep 17 00:00:00 2001 From: Daniel Bergman Date: Sat, 28 Jun 2025 14:29:05 +0200 Subject: [PATCH 2/2] INCLUDES project root in a Windows friendly way --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 94b4c129..45eae6b7 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ endif # Add your include directories here. INCLUDES += \ -I./ \ + -I. \ -I./tinyusb/src \ -I./littlefs \ -I./utz \