Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip 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)
commitb8fa4f76c70fb2ed5ab69b29547b4091c6cba971 (patch)
tree681c8ce6044a5dc5d766a972181fa27119f68400
parent6f90359fc30c2d599eddba4bc30f67a28713576d (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--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6fdba1d..4223294 100644
--- a/Makefile
+++ b/Makefile
@@ -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;)