From 0d2e565a592cfcaa4ba9c1b9701172d9338076ec Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 7 Apr 2012 23:55:15 +0100 Subject: Add cover image to ebooks --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 343e0c2..ca551f8 100644 --- a/Makefile +++ b/Makefile @@ -22,15 +22,19 @@ all: book.pdf book.epub book.mobi book.pdf: $(chapters) markdown2pdf --toc -o book.pdf $(chapters) -book.epub: $(chapters) - pandoc -t epub --epub-metadata=book.xml -o book.epub $(chapters) +book.epub: $(chapters) cover.png + pandoc -t epub --epub-metadata=book.xml --epub-cover=cover.png \ + -o book.epub $(chapters) book.mobi: book.epub ebook-convert book.epub book.mobi +cover.png: cover.svg + inkscape -e cover.png cover.svg + count: wc -w $(chapters) echo 100 '*' $$(cat $(chapters) | wc -w) / 30000 | bc -l clean: - rm -f book.pdf book.html book.epub book.mobi + rm -f book.pdf book.html book.epub book.mobi cover.png -- cgit v1.2.1