Makefile for slides.

This commit is contained in:
Justin Hsu 2018-09-03 22:45:09 -05:00
parent 32d516086d
commit 1fa757c9c4
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
THEME=solarized
REVEALJS-ROOT=../../assets/custom-js/reveal.js/
KATEX-ROOT=../../assets/custom-js/katex/
SRC=$(wildcard *.md)
OUT=$(patsubst %.md,%.html,$(SRC))
.PHONY: all clean
all: $(OUT)
%.html: %.md
pandoc -t revealjs -s $< -o $@ -V revealjs-url=$(REVEALJS-ROOT) -V theme=$(THEME) --katex=$(KATEX-ROOT)
clean:
rm -f *.html