aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)