aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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)