diff --git a/Makefile b/Makefile index 4ada4d0a..5866e262 100755 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ SRC = $(wildcard *.md) PDFS=$(SRC:.md=.pdf) HTML=$(SRC:.md=.html) +LATEX_TEMPLATE=./pandoc-templates/default.latex all: clean $(PDFS) $(HTML) @@ -11,9 +12,11 @@ html: clean $(HTML) %.html: %.md python resume.py html $(GRAVATAR_OPTION) < $< | pandoc -t html -c resume.css -o $@ -%.pdf: %.md - python resume.py tex < $< | pandoc --template=./pandoc-templates/default.latex -H header.tex -o $@ +%.pdf: %.md $(LATEX_TEMPLATE) + python resume.py tex < $< | pandoc --template=$(LATEX_TEMPLATE) -H header.tex -o $@ clean: rm -f *.html *.pdf +$(LATEX_TEMPLATE): + git submodule update --init