summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-03-30 22:09:30 +0100
committerLars Wirzenius <liw@liw.fi>2012-03-30 22:09:30 +0100
commit791483a3306e745d7974d843ebbfb1bbf8a06f8d (patch)
treee8ec242e744abafec0527a8d0f8bf09156052029 /Makefile
parent2a3404c5939664f83c6ff14747b5ccf5030e4ac3 (diff)
downloadgtdfh.liw.fi-791483a3306e745d7974d843ebbfb1bbf8a06f8d.tar.gz
Produce ebook versions in addition to pdf
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)