-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
36 lines (30 loc) · 977 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
35
36
default : index.html simulacra-and-simulation.mobi
web.css : styles/index.css styles/html.css
cat styles/index.css > web.css && cat styles/html.css >> web.css
index.html : chapters/* web.css filters/* template.t
pandoc \
-s \
--filter filters/hyphenate.py \
--section-divs \
-o index.html \
-c web.css \
--template template.t \
chapters/*
ebook.css : styles/index.css styles/epub.css
cat styles/index.css > ebook.css && cat styles/epub.css >> ebook.css
simulacra-and-simulation.epub : chapters/* ebook.css filters/* template.t cover.jpg
pandoc \
-s \
--filter filters/hyphenate.py \
--section-divs \
--toc-depth=2 \
--epub-cover-image cover.jpg \
-o simulacra-and-simulation.epub \
-c ebook.css \
--template template.t \
-t epub3 \
chapters/*
simulacra-and-simulation.mobi : simulacra-and-simulation.epub
kindlegen simulacra-and-simulation.epub
clean :
$(RM) simulacra-and-simulation.epub simulacra-and-simulation.mobi index.html web.css ebook.css