Skip to content

Commit ef87fd1

Browse files
committed
diagram-generator: improve Makefile
1 parent 91942ef commit ef87fd1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

diagram-generator/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sample.html

diagram-generator/Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
test:
2-
@pandoc --self-contained --lua-filter=diagram-generator.lua --metadata=activatePythonPath:"python3 --version" --metadata=pythonPath:"python3" --metadata=title:"README" sample.md -o output.html
1+
.PHONY: test
2+
test: sample.html
3+
4+
sample.html: sample.md
5+
@pandoc --self-contained \
6+
--lua-filter=diagram-generator.lua \
7+
--metadata=activatePythonPath:"python3 --version" \
8+
--metadata=pythonPath:"python3" \
9+
--metadata=title:"README" \
10+
--output=$@ $<
311

0 commit comments

Comments
 (0)