From b1f8ffecf0785fa6762ab128047714ac64d8a0af Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 22 May 2025 22:13:16 +0200 Subject: render syntax diagrams with report --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 37d550f..499658a 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,8 @@ DIFF = git --no-pager diff --no-index PANDOC = pandoc --from commonmark #PANDOC = quarto pandoc --from commonmark +SYNTAX_DIAGRAMS := $(patsubst %.py,%.svg,$(wildcard def_*.py)) + RAPPER = rapper -i rdfa #RAPPER += -f relativeURIs @@ -33,6 +35,11 @@ NS += ov=http://open.vocab.org/terms/ RAPPER += $(foreach s,$(NS),$(let a b,$(subst =, $(),$s), -f 'xmlns:$a="$b"')) +_site/report.pdf: $(wildcard _*.qmd) $(SYNTAX_DIAGRAMS) + +$(SYNTAX_DIAGRAMS): %.svg: %.py + python3 $< + check: $(DIFFTESTS:%=check-%) luacheck --quiet $(FILTER) -- cgit v1.2.3