1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
FILTER_FILE := $(wildcard *.lua)
PANDOC ?= pandoc
DIFF ?= diff
.PHONY: test
test: test-asymptote test-dot \
test-no-alt-or-caption test-pikchr
test-%: test/test-%.yaml test/input-%.md $(FILTER_FILE)
@$(PANDOC) --defaults test/test-$*.yaml | \
$(DIFF) test/expected-$*.html -
sample.html: sample.md diagram.lua
@$(PANDOC) --self-contained \
--lua-filter=diagram.lua \
--metadata=pythonPath:"python3" \
--metadata=title:"README" \
--output=$@ $<
clean:
@rm -f sample.html
@rm -rf tmp-latex
|