Files
modern-cpp-tutorial/pdf/zh-cn/Makefile
2018-04-13 09:43:01 +02:00

28 lines
581 B
Makefile

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