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)
all: delaunay.pdf pointeurs_avances.pdf oral.pdf ligne_commande.pdf strings.pdf tests_assertions.pdf make.pdf base_3.pdf base_2.pdf base_1.pdf intro.pdf index.html
base_3.pdf: base_3.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
make.pdf: make.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
tests_assertions.pdf: tests_assertions.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
strings.pdf: strings.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
ligne_commande.pdf: ligne_commande.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
oral.pdf: oral.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
pointeurs_avances.pdf: pointeurs_avances.md metadata.yaml
pandoc $(PDFOPTIONS) -o $@ $^
delaunay.pdf: delaunay.md
pandoc $(PDFOPTIONS) -o $@ $^
index.html: index.md
pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $<
deploy: all
mkdir -p prog_seq_c_cours
cp *.pdf prog_seq_c_cours
cp index.html prog_seq_c_cours/
rm -f *.pdf index.html