-
Notifications
You must be signed in to change notification settings - Fork 584
/
Makefile
20 lines (16 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all:
pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html src/pre/*.md src/*.md src/end/*.md -o index.html
iot:
pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head.html end/iot.md -o iot.html
chapter:
find src/ -name \*.md -type f -exec pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/head-chapter.html -o {}.html {} \;
mv src/*/*.html build/
mv src/*.html build/
epub:
pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md src/end/*.md -o build/pdf.html
pandoc build/pdf.html -o build/designiot.epub
release:
pandoc -s -V geometry:margin=1in --number-sections --highlight-style pygments -S --toc -c css/vendor.css -B template/headpdf.html src/pre/*.md src/*.md src/end/*.md -o build/pdf.html
pandoc --template=template/template.tex build/pdf.html -o build/iot.pdf --latex-engine=xelatex
pandoc build/pdf.html -o build/designiot.epub
pandoc build/pdf.html -o build/designiot.mobi