summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7cff321..16492f3 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,13 @@ chapters = \
all: book.pdf
book.pdf: book.css $(chapters)
- ./markdown-to-pdf $(chapters) > book.pdf
+ markdown2pdf --toc -o book.pdf $(chapters)
+
+book.epub: $(chapters)
+ pandoc -t epub -o book.epub $(chapters)
+
+book.mobi: book.epub
+ ebook-convert book.epub book.mobi
count:
wc -w $(chapters)