forked from mixu/distsysbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (34 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
build:
@node generate.js
ebook:
@echo "\n... generating $@"
ebook-convert output/ebook.html output/mixu-distributed-systems-book.mobi \
--cover ./output/images/dist-sys-cover.png \
--max-levels 0 \
--chapter "//*[@class = 'chapter']" \
--chapter-mark=none \
--sr1-search "<blockquote>" \
--sr1-replace "<hr><blockquote>" \
--sr2-search "</blockquote>" \
--sr2-replace "</blockquote><hr>" \
--page-breaks-before='/' \
--linearize-tables \
--authors "Mikito Takada" \
--language en \
--output-profile kindle
@echo "\n... generating $@"
ebook-convert output/ebook.html output/mixu-distributed-systems-book.epub \
--cover ./output/images/dist-sys-cover.png \
--max-levels 0 \
--chapter "//*[@class = 'chapter']" \
--chapter-mark=none \
--sr1-search "<blockquote>" \
--sr1-replace "<hr><blockquote>" \
--sr2-search "</blockquote>" \
--sr2-replace "</blockquote><hr>" \
--page-breaks-before='/' \
--linearize-tables \
--authors "Mikito Takada" \
--no-default-epub-cover \
--language en
.PHONY: build ebook