mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-30 11:46:58 +03:00
40 lines
692 B
Makefile
40 lines
692 B
Makefile
|
|
|
|
targets = \
|
|
HRR.html
|
|
|
|
|
|
md_format = \
|
|
markdown+pandoc_title_block+pipe_tables+table_captions+escaped_line_breaks+implicit_figures+strikeout+tex_math_dollars+latex_macros+fenced_code_blocks
|
|
|
|
math_opt = --latexmathml
|
|
#math_opt = --jsmath
|
|
#math_opt = --mathjax
|
|
|
|
slide_opts = \
|
|
--standalone --self-contained --slide-level=2 \
|
|
$(math_opt)
|
|
## --incremental
|
|
|
|
%.html: %.md
|
|
pandoc -f $(md_format) -t s5 $(slide_opts) -o $@ $<
|
|
|
|
%.tex: %.md
|
|
pandoc -f $(md_format) -t beamer -s --slide-level=2 -o $@ $<
|
|
|
|
|
|
%.dvi %.log %.aux: %.tex
|
|
platex $<
|
|
|
|
|
|
%.pdf: %.dvi
|
|
dvipdfmx $(@:.pdf=.dvi)
|
|
|
|
|
|
all: $(targets)
|
|
|
|
clean:
|
|
$(RM) $(targets)
|
|
## $(RM) *.dvi *.pdf
|
|
## $(RM) *.aux *.log *.nav *.out *.snm *.toc *.vrb
|