Newer
Older
PDFOPTIONS = -t beamer
PDFOPTIONS += --highlight-style my_highlight.theme
PDFOPTIONS += -V theme:metropolis
PDFOPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot
PDFOPTIONS += -V fontsize=smaller
REVEALOPTIONS = -t revealjs
REVEALOPTIONS += --self-contained
REVEALOPTIONS += -V revealjs-url=./reveal.js
REVEALOPTIONS += -V theme=white
MD=$(wildcard *.md)
HTML=$(MD:%.md=%.html)
PDF=$(MD:%.md=%.pdf)
%.markdown: %.md metadata.yaml
echo "---" >> $@
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > only_header && grep -v -F -x -f only_header $< > header.yaml && ./yq_linux_amd64 merge metadata.yaml header.yaml > $@
mkdir -p prog_seq_c_cours
cp *.pdf prog_seq_c_cours