Add mobi task to makefile
This commit is contained in:
parent
86f050564c
commit
b5aa0d19e8
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -2,7 +2,7 @@ FILES=intro.md about.md about_author.md chapter-01.md chapter-02.md chapter-03.m
|
|||
|
||||
.PHONY: html epub
|
||||
|
||||
all: html epub
|
||||
all: html epub mobi
|
||||
|
||||
html:
|
||||
rm -rf out/html && mkdir -p out/html
|
||||
|
|
@ -13,3 +13,7 @@ epub:
|
|||
mkdir -p out
|
||||
rm -f out/black-book.epub
|
||||
pandoc -S --to epub3 -o out/black-book.epub --epub-cover-image images/cover.png --toc --epub-chapter-level=2 --data-dir=epub --template=epub/template.html $(FILES)
|
||||
|
||||
mobi: epub
|
||||
rm -f out/black-book.mobi
|
||||
kindlegen out/black-book.epub -c2
|
||||
|
|
|
|||
Loading…
Reference in a new issue