From 9ec11f1b4b03cc78d13904c38a3cf243b566374d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 24 Oct 2020 20:22:52 -0700 Subject: [PATCH] Force compilation of sketches in the simulator. Because the Arduino build system doesn't -really- interface well with Makefiles, there's no other way to pick up Kaleidoscope or sketch changes from Make. This -does- slow down sim builds / test runs a bit. Fixes #942 --- testing/makefiles/testcase.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testing/makefiles/testcase.mk b/testing/makefiles/testcase.mk index 42dfca3a..b1989e0e 100644 --- a/testing/makefiles/testcase.mk +++ b/testing/makefiles/testcase.mk @@ -21,7 +21,7 @@ else bundle_path = ${BOARD_HARDWARE_PATH}/keyboardio/avr/libraries endif -build: ${BIN_DIR}/${BIN_FILE} +build: ${BIN_DIR}/${BIN_FILE} compile-sketch all: run @@ -29,7 +29,10 @@ run: ${BIN_DIR}/${BIN_FILE} @echo "run" "${BIN_DIR}/${BIN_FILE}" -t -q -${BIN_DIR}/${BIN_FILE}: ${TEST_OBJS} +${BIN_DIR}/${BIN_FILE}: ${TEST_OBJS} + +# We force sketch recompiliation because otherwise, make won't pick up changes to...anything on the arduino side +compile-sketch: @echo "link" install -d "${BIN_DIR}" "${LIB_DIR}" env LIBONLY=yes \