Skip to content
Snippets Groups Projects
Makefile 1.15 KiB
Newer Older
DATADIR      = ./
FILTERDIR    = $(DATADIR)/filters
RESOURCEDIR  = $(DATADIR)/resources
PDFOPTIONS = -t beamer
PDFOPTIONS += --highlight-style my_highlight.theme
PDFOPTIONS += --pdf-engine pdflatex
PDFOPTIONS += --template=./default.latex
PDFOPTIONS += -V theme:metropolis
PDFOPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot
PDFOPTIONS += -V fontsize=smaller
# PDFOPTIONS += --lua-filter=${FILTERDIR}/tex.lua
# PDFOPTIONS += --include-in-header=${RESOURCEDIR}/definitions.tex
# PDFOPTIONS += --include-in-header=${RESOURCEDIR}/beamer.tex
PDFOPTIONS += $(OPTIONS)
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 metadata.yaml *.theme
	pandoc $(PDFOPTIONS) -o $@ $^
base_1.pdf: base_1.md metadata.yaml *.theme
	pandoc $(PDFOPTIONS) -o $@ $^
base_2.pdf: base_2.md metadata.yaml *.theme figs/memory.svg
	pandoc $(PDFOPTIONS) -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