haskell-relational-record/doc/slide/haskell-hackathon-201412/GNUmakefile

40 lines
694 B
Makefile
Raw Normal View History

2014-12-21 10:16:54 +03:00
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: %.txt
pandoc -f $(md_format) -t s5 $(slide_opts) -o $@ $<
%.tex: %.txt
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