32 lines
791 B
Plaintext
32 lines
791 B
Plaintext
# build html
|
|
rule md2html
|
|
command = m4 -P $in $
|
|
| pandoc $
|
|
--from=markdown+autolink_bare_uris $
|
|
--to=html5 $
|
|
--output=$out $
|
|
--standalone $
|
|
--toc $
|
|
--variable=linkcolor:blue $
|
|
--resource-path=assets $
|
|
--embed-resources=true
|
|
build dist/haunt.html: md2html src/haunt.md
|
|
build dist/play.html: md2html src/play.md
|
|
build html: phony dist/haunt.html dist/play.html
|
|
|
|
# build pdf
|
|
rule md2pdf
|
|
command = m4 -P $in $
|
|
| pandoc $
|
|
--from=markdown+autolink_bare_uris $
|
|
--to=pdf $
|
|
--pdf-engine=xelatex $
|
|
--variable=linkcolor:blue $
|
|
--standalone $
|
|
--toc $
|
|
--resource-path=assets $
|
|
--embed-resources=true $
|
|
--output=$out
|
|
build dist/haunt.pdf: md2pdf src/haunt.md
|
|
build pdf: phony dist/haunt.pdf
|