-
Notifications
You must be signed in to change notification settings - Fork 248
/
Makefile
34 lines (32 loc) · 965 Bytes
/
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
build:
@node generate.js
ebook:
@echo "\n... generating $@"
ebook-convert output/ebook.html output/mixu-distributed-systems-book.mobi \
--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 \
--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