Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

generate mobile e-books: .mobi and .epub

  • Loading branch information...
commit 41d5aa470d9e22f4691a340433122dfcaf33a732 1 parent cfb6a56
@avsej authored
View
28 oreilly_final/Makefile
@@ -0,0 +1,28 @@
+# You need calibre installed (http://calibre-ebook.com/)
+
+STYLESHEET=/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/docbook.xsl
+
+all: book.mobi book.epub clean
+
+book.epub: book.html
+ ebook-convert $^ $@ \
+ --level1-toc //h:h1 \
+ --level2-toc //h:h2 \
+ --level3-toc //h:h3 \
+ --language en
+
+book.mobi: book.html
+ ebook-convert $^ $@ \
+ --level1-toc //h:h1 \
+ --level2-toc //h:h2 \
+ --level3-toc //h:h3 \
+ --language en
+
+book.html: book.xml
+ xsltproc --output $@ $(STYLESHEET) $^
+
+clean:
+ rm -f book.html
+
+.PHONY: all
+
View
BIN  oreilly_final/book.epub
Binary file not shown
View
BIN  oreilly_final/book.mobi
Binary file not shown
View
1  oreilly_final/figs/print
View
1  oreilly_final/figs/web
Please sign in to comment.
Something went wrong with that request. Please try again.