Makefile: run-test.mk depends on .sh

Also make the run-test part explicit.
This commit is contained in:
Krystine Sherwin 2026-03-11 12:58:53 +13:00
parent c1bc302174
commit ae5ac17e3f
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -1005,8 +1005,8 @@ abcopt-tests/%: %/run-test.sh $(TARGETS) $(EXTRA_TARGETS)
.PHONY: makefile-tests
makefile-tests: $(MK_TEST_DIRS:%=makefile-tests/%)
# this target actually emits .mk files
%.mk:
+cd $(dir $*) && bash run-test.sh
%/run-test.mk: %/run-test.sh
+cd $* && bash run-test.sh
# this one spawns submake on each
makefile-tests/%: %/run-test.mk $(TARGETS) $(EXTRA_TARGETS)
$(MAKE) -C $* -f run-test.mk