aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-22 22:54:07 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-22 22:54:07 +0200
commitf4ae40195ebd1fcfe0568236ce1ba00dbae0f3c1 (patch)
tree23434557299ee81b86010352b548a6dcd7308641 /Makefile
parentb1f8ffecf0785fa6762ab128047714ac64d8a0af (diff)
add workflow diagrams
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 499658a..83b764d 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ PANDOC = pandoc --from commonmark
SYNTAX_DIAGRAMS := $(patsubst %.py,%.svg,$(wildcard def_*.py))
+WORKFLOW_DIAGRAMS := $(patsubst %.cwl,%.svg,$(wildcard workflow/phase*.cwl))
+
RAPPER = rapper -i rdfa
#RAPPER += -f relativeURIs
@@ -35,11 +37,14 @@ 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)
+_site/report.pdf: $(wildcard _*.qmd) $(SYNTAX_DIAGRAMS) $(WORKFLOW_DIAGRAMS)
$(SYNTAX_DIAGRAMS): %.svg: %.py
python3 $<
+$(WORKFLOW_DIAGRAMS): %.svg: %.cwl
+ cwltool --print-dot $< | gvpr -f workflow/rotate.gvpr | dot -Tsvg > $@
+
check: $(DIFFTESTS:%=check-%)
luacheck --quiet $(FILTER)