Skip to content
Snippets Groups Projects
Makefile 1.84 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
orestis.malaspin's avatar
orestis.malaspin committed
# PDFOPTIONS += --filter  pandoc-beamer-block
# 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

orestis.malaspin's avatar
orestis.malaspin committed
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
orestis.malaspin's avatar
orestis.malaspin committed
intro.pdf: intro.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
base_1.pdf: base_1.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
base_2.pdf: base_2.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
base_3.pdf: base_3.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

make.pdf: make.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

orestis.malaspin's avatar
orestis.malaspin committed
tests_assertions.pdf: tests_assertions.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

strings.pdf: strings.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

orestis.malaspin's avatar
orestis.malaspin committed
ligne_commande.pdf: ligne_commande.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

orestis.malaspin's avatar
orestis.malaspin committed
oral.pdf: oral.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

pointeurs_avances.pdf: pointeurs_avances.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^

orestis.malaspin's avatar
orestis.malaspin committed
delaunay.pdf: delaunay.md
	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