From 1f49a16bf1cfb1bd8fe1e347c48b1642cef9aaf3 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 26 Mar 2022 19:25:50 -0700 Subject: [PATCH] do a little more shell makefile caching --- etc/makefiles/sketch.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index abec3273..0f4faaa9 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -48,7 +48,7 @@ ELF_FILE_PATH := $(OUTPUT_PATH)/$(OUTPUT_FILE_PREFIX).elf LIB_FILE_PATH := $(OUTPUT_PATH)/$(OUTPUT_FILE_PREFIX).a ifeq ($(FQBN),) -possible_fqbns = $(shell $(ARDUINO_CLI) board list --format=json |grep FQBN| grep -v "keyboardio:virtual"|cut -d: -f 2-) +possible_fqbns := $(shell $(ARDUINO_CLI) board list --format=json |grep FQBN| grep -v "keyboardio:virtual"|cut -d: -f 2-) possible_fqbn = $(firstword $(possible_fqbns)) @@ -102,7 +102,7 @@ endif # Flashing related config ifneq ($(FQBN),) ifeq ($(KALEIDOSCOPE_DEVICE_PORT),) -KALEIDOSCOPE_DEVICE_PORT = $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1) +KALEIDOSCOPE_DEVICE_PORT := $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1) endif endif @@ -111,7 +111,7 @@ ifeq ($(flashing_instructions),) flashing_instructions := "If your keyboard needs you to do something to put it in flashing mode, do that now." endif -unescaped_flashing_instructions = $(shell printf $(flashing_instructions) ) +unescaped_flashing_instructions := $(shell printf $(flashing_instructions) ) DEFAULT_GOAL: compile