From 2a14c721100270bf4ecbf186861f7dc7ddeae1de Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:36:59 +1300 Subject: [PATCH] test-docs: target examples directly --- docs/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 56d59cb3a8d..71a6b3152fe 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -230,8 +230,12 @@ PYTHON ?= python3 .PHONY: test test-examples test-macros test: test-examples test-macros -test-examples: - $(MAKE) -C source/_images examples +FORCE: +../%/Makefile: FORCE + +$(MAKE) -C $(@D) + +CODE_EXAMPLES := source/code_examples/*/Makefile +test-examples: $(CODE_EXAMPLES) test-macros: $(PYTHON) tests/macro_commands.py