Skip to content
Snippets Groups Projects
Makefile 2.07 KiB
Newer Older
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
orestis.malaspin's avatar
orestis.malaspin committed
PDFOPTIONS += -V urlcolor=blue
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

REVEALOPTIONS = -t revealjs
REVEALOPTIONS += --self-contained
REVEALOPTIONS += -V revealjs-url=./reveal.js
REVEALOPTIONS += -V theme=white

orestis.malaspin's avatar
orestis.malaspin committed
all: base_6.pdf base_5.pdf base_4.pdf base_3.pdf base_2.pdf base_1.pdf intro.pdf command_line.pdf index.html 
orestis.malaspin's avatar
orestis.malaspin committed
all_html: intro.html base_1.html base_2.html base_3.html base_4.html base_5.html base_6.html command_line.html
orestis.malaspin's avatar
orestis.malaspin committed
intro.pdf: intro.md metadata.yaml
	pandoc $(PDFOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
intro.html: intro.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

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

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

base_3.html: base_3.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

base_4.html: base_4.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

base_5.html: base_5.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

base_6.html: base_6.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

orestis.malaspin's avatar
orestis.malaspin committed
command_line.html: command_line.md metadata.yaml
	pandoc $(REVEALOPTIONS) -o $@ $^

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

deploy: all all_html
orestis.malaspin's avatar
orestis.malaspin committed
	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/
orestis.malaspin's avatar
orestis.malaspin committed

	rm -f *.pdf *.html