Commit be42e99b

be42e99b21ceMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

build: make test depends on spinel_codegen for auto-rebuild

Previously make test only checked that spinel_codegen existed and errored if missing — touching spinel_codegen.rb didn't trigger a rebuild before running the test suite. Adding the binary as a prerequisite makes make test Just Work after a source edit.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
be42e99b21ce
Parent
f325c8422136

MakefilemodifiedView file

@@ -188,8 +188,7 @@
188188
189189 # ---- Test ----
190190
191-test: spinel_parse$(EXE) $(SP_RT_LIB)
192- @if [ ! -f spinel_codegen$(EXE) ]; then echo "Run 'make' or 'make spinel_codegen' first"; exit 1; fi
191+test: spinel_parse$(EXE) $(SP_RT_LIB) spinel_codegen$(EXE)
193192 @if [ -z "$(TIMEOUT_BIN)" ]; then echo "Note: no 'timeout' command found; running without time limits."; fi
194193 @pass=0; fail=0; err=0; \
195194 for f in test/*.rb; do \