PDFOPTIONS = -t beamer PDFOPTIONS += --highlight-style my_highlight.theme PDFOPTIONS += --pdf-engine pdflatex PDFOPTIONS += -V theme:metropolis PDFOPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot PDFOPTIONS += -V fontsize=smaller PDFOPTIONS += -V urlcolor=blue HTMLOPTIONS = -t html5 HTMLOPTIONS += -c css/tufte-css/tufte.css HTMLOPTIONS += --self-contained REVEALOPTIONS = -t revealjs REVEALOPTIONS += --self-contained REVEALOPTIONS += -V revealjs-url=./reveal.js REVEALOPTIONS += -V theme=white MD=$(wildcard *.md) HTML=$(MD:%.md=%.html) PDF=$(MD:%.md=%.pdf) all: $(HTML) $(PDF) %.pdf: %.md metadata.yaml pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $< %.html: %.md metadata.yaml pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $< deploy: all all_html mkdir -p prog_seq_c_cours cp *.pdf prog_seq_c_cours cp *.html prog_seq_c_cours cp index.html prog_seq_c_cours/ clean: rm -f *.pdf *.html