Skip to content
Snippets Groups Projects
Makefile 768 B
Newer Older
OPTIONS = --filter=pandoc-numbering
OPTIONS += --filter=pandoc-crossref

PDFOPTIONS = --highlight-style my_highlight.theme
PDFOPTIONS += --pdf-engine pdflatex
PDFOPTIONS += --number-sections
PDFOPTIONS += --template=./default.latex

orestis.malaspin's avatar
orestis.malaspin committed
HTMLOPTIONS += -t html5
orestis.malaspin's avatar
orestis.malaspin committed
HTMLOPTIONS += -c css/tufte-css/tufte.css
orestis.malaspin's avatar
orestis.malaspin committed
HTMLOPTIONS += --self-contained

all: base_2.pdf base_1.pdf intro.pdf index.html

intro.pdf: intro.md *.theme
	pandoc -t beamer -o $@ $<

base_1.pdf: base_1.md *.theme
	pandoc -t beamer -o $@ $<

orestis.malaspin's avatar
orestis.malaspin committed
base_2.pdf: base_2.md *.theme figs/memory.svg
	pandoc -t beamer -o $@ $<

orestis.malaspin's avatar
orestis.malaspin committed
index.html: index.md
	pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $<

orestis.malaspin's avatar
orestis.malaspin committed
deploy: all
	mkdir -p prog_seq_c_cours
	cp *.pdf prog_seq_c_cours
	cp index.html prog_seq_c_cours/
orestis.malaspin's avatar
orestis.malaspin committed

	rm -f *.pdf index.html