see #6: pdf for english version

This commit is contained in:
Changkun Ou
2018-05-06 15:20:13 +02:00
parent 70250c2b0a
commit 9e18543f65
9 changed files with 6028 additions and 11 deletions

28
pdf/en-us/Makefile Normal file
View File

@@ -0,0 +1,28 @@
title = 'C++11/14/17 On the Fly'
filename = 'modern-cpp-tutorial'
outputname='modern-cpp-tutorial'
all: pdf
pdf: markdown
@echo "Compiling PDF file..."
@pandoc -s $(filename).md -o $(outputname).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/en-us/* .
@echo "Aggregating markdown files..."
@python3 aggregator.py
clean:
rm -rf *.md *.pdf
.PHONY: markdown pdf clean