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
pull/948/head
Jesse Vincent 4 years ago
parent 240f141538
commit 9ec11f1b4b
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -21,7 +21,7 @@ else
bundle_path = ${BOARD_HARDWARE_PATH}/keyboardio/avr/libraries bundle_path = ${BOARD_HARDWARE_PATH}/keyboardio/avr/libraries
endif endif
build: ${BIN_DIR}/${BIN_FILE} build: ${BIN_DIR}/${BIN_FILE} compile-sketch
all: run all: run
@ -30,6 +30,9 @@ run: ${BIN_DIR}/${BIN_FILE}
"${BIN_DIR}/${BIN_FILE}" -t -q "${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" @echo "link"
install -d "${BIN_DIR}" "${LIB_DIR}" install -d "${BIN_DIR}" "${LIB_DIR}"
env LIBONLY=yes \ env LIBONLY=yes \

Loading…
Cancel
Save