website: host pdf version to website

Fix #73
This commit is contained in:
Changkun Ou
2019-07-19 13:59:11 +02:00
parent ff2dc605ad
commit 20f6a75ed4
7 changed files with 14 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
DOCKER_ENV=changkun/modern-cpp-tutorial:build-env
LANGS = zh-cn en-us
ALL_BUILDS = pdf website
ALL_BUILDS = website pdf
# dep
@@ -9,6 +9,8 @@ all: $(ALL_BUILDS)
pdf: $(LANGS)
$(LANGS):
cd pdf/$@ && make && make clean
mkdir -p website/public/modern-cpp/pdf
mv pdf/$@/modern-cpp-tutorial.pdf website/public/modern-cpp/pdf/modern-cpp-tutorial-$@.pdf
website:
cd website && make