add #12: prepare English supports

This commit is contained in:
Changkun Ou
2018-04-13 09:43:01 +02:00
parent 84a02f7183
commit c9e3040285
25 changed files with 187 additions and 7 deletions

28
pdf/zh-cn/Makefile Normal file
View File

@@ -0,0 +1,28 @@
title = '高速上手 C++11/14/17'
filename = 'modern-cpp-tutorial'
outputname='modern-cpp-tutorial'
all: pdf
pdf: markdown
@echo "Compiling PDF file..."
@pandoc -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--normalize \
--smart \
--latex-engine=`which xelatex`
@echo "Done."
@rm *.md
markdown:
@echo "Copy markdown files..."
@cp -r ../../book/zh-cn/* .
@echo "Aggregating markdown files..."
@python3 aggregator.py
clean:
rm -rf *.md *.pdf
.PHONY: markdown pdf clean