aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2fbdabc..f81023b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@ PDF_DOCUMENTS = _site/report.pdf
include _make/*.mk
-FILTER = _extensions/ruc-play/sem-md/sem-md.lua
+FILTER = sem-md/sem-md.lua
-DIFFTESTS = $(patsubst %.md,%,$(wildcard test/*.md))
+DIFFTESTS = $(patsubst %.md.md,%,$(wildcard test/*.md.md))
_which = $(shell command -v $1 >/dev/null 2>&1 && echo $1 $2)
DIFF = $(strip $(or \
@@ -53,9 +53,12 @@ $(WORKFLOW_DIAGRAMS): %.svg: %.cwl
check: $(DIFFTESTS:%=check-%)
luacheck --quiet $(FILTER)
-$(DIFFTESTS:%=check-%): check-%: %.md
- -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \
- | $(DIFF) $*.plain.html /dev/stdin)
+#$(DIFFTESTS:%=check-%): check-%: %.md
+# -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \
+# | $(DIFF) $*.plain.html /dev/stdin)
+$(DIFFTESTS:%=check-%): check-%: %.md %.md.md
+ -$(strip $(PANDOC) --to commonmark --lua-filter $(FILTER) --wrap preserve < $< \
+ | $(DIFF) $*.md.md /dev/stdin)
$(DIFFTESTS:%=debug-%): debug-%: %.md
$(PANDOC) --to native --lua-filter $(FILTER) < $<