Skip to content
Snippets Groups Projects
Makefile 785 B
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
REVEALOPTIONS = -t revealjs
REVEALOPTIONS += --self-contained
REVEALOPTIONS += -V revealjs-url=./reveal.js
REVEALOPTIONS += -V theme=white

orestis.malaspin's avatar
orestis.malaspin committed
MD=$(wildcard *.md)
HTML=$(MD:%.md=%.html)
PDF=$(MD:%.md=%.pdf)
orestis.malaspin's avatar
orestis.malaspin committed
all: $(HTML) $(PDF)
orestis.malaspin's avatar
orestis.malaspin committed
%.pdf: %.md metadata.yaml
orestis.malaspin's avatar
orestis.malaspin committed
	pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
%.html: %.md metadata.yaml
orestis.malaspin's avatar
orestis.malaspin committed
	pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $^
orestis.malaspin's avatar
orestis.malaspin committed
deploy: all 
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
orestis.malaspin's avatar
orestis.malaspin committed

	rm -f *.pdf *.html