mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 20:54:39 +03:00
update: prepare english chapters
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
title = 'C++11/14/17 On the Fly'
|
||||
filename = 'modern-cpp-tutorial'
|
||||
outputname='modern-cpp-tutorial'
|
||||
revision = $(shell git describe --always --tags)
|
||||
|
||||
all: pdf
|
||||
all: revision pdf
|
||||
|
||||
revision:
|
||||
@echo '% Autogenerated, do not edit' > revision.tex
|
||||
@echo '\\newcommand{\\revision}{'$(revision)'}' >> revision.tex
|
||||
|
||||
pdf: markdown
|
||||
@echo "Compiling PDF file..."
|
||||
@pandoc -s $(filename).md -o $(outputname).pdf \
|
||||
@pandoc -f markdown+smart -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`
|
||||
--pdf-engine=`which xelatex`
|
||||
@echo "Done."
|
||||
@rm *.md
|
||||
@rm *.md revision.tex
|
||||
|
||||
markdown:
|
||||
@echo "Copy markdown files..."
|
||||
@@ -23,6 +26,6 @@ markdown:
|
||||
@python3 aggregator.py
|
||||
|
||||
clean:
|
||||
rm -rf *.md *.pdf
|
||||
rm -rf revision.tex *.md *.pdf
|
||||
|
||||
.PHONY: markdown pdf clean
|
||||
Reference in New Issue
Block a user