From 791483a3306e745d7974d843ebbfb1bbf8a06f8d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 30 Mar 2012 22:09:30 +0100 Subject: Produce ebook versions in addition to pdf --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.1