diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2013-08-22 21:41:19 (GMT) |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2013-08-22 21:41:19 (GMT) |
commit | b8fa4f76c70fb2ed5ab69b29547b4091c6cba971 (patch) | |
tree | 681c8ce6044a5dc5d766a972181fa27119f68400 | |
parent | 6f90359fc30c2d599eddba4bc30f67a28713576d (diff) |
Support building the PDFs in a specified language
To do so:
make presentation.pdf LANG=en
or:
make all LANG=es
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +# This variable's customisable to change the language of the outputted files. +# Permissible values: 'en' or 'es' +LANG = es + PDFS = presentation.pdf handout.pdf EN_EXERCISES = \ 1_printing-names \ @@ -25,12 +29,12 @@ ES_EXERCISES = \ all: $(PDFS) presentation.pdf: presentation.tex slides.tex - pdflatex $< - pdflatex $< + pdflatex "\providecommand\locale{$(LANG)}\input{$<}" + pdflatex "\providecommand\locale{$(LANG)}\input{$<}" handout.pdf: handout.tex slides.tex - pdflatex $< - pdflatex $< + pdflatex "\providecommand\locale{$(LANG)}\input{$<}" + pdflatex "\providecommand\locale{$(LANG)}\input{$<}" check: $(foreach ex,$(EN_EXERCISES),pep8 exercises/en/${ex}.py exercises/en/${ex}_solution.py;) |