Skip to content

Commit

Permalink
tell Make to get latex template via git submodule update --init
Browse files Browse the repository at this point in the history
  • Loading branch information
ncrowell authored and Nicolas Crowell committed Sep 23, 2013
1 parent 6e99653 commit 36b4a75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

0 comments on commit 36b4a75

Please sign in to comment.