[gtkmm-documentation/gtkmm-2-22] Add experimental generation of mobi format.



commit c93a89c27cbbb344d66272050a798f67fef83818
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 28 10:14:33 2010 +0200

    Add experimental generation of mobi format.
    
    * docs/tutorial/Makefile.am: Use ebook-convert, installed by calibre.

 ChangeLog                 |    6 ++++++
 docs/tutorial/Makefile.am |   11 ++++++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ef61d11..cf582c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-28  Murray Cumming  <murrayc murrayc com>
+
+	Add experimental generation of mobi format.
+
+	* docs/tutorial/Makefile.am: Use ebook-convert, installed by calibre.
+
 2010-10-27  Murray Cumming  <murrayc murrayc com>
 
 	Add an experimental generation of epub format.
diff --git a/docs/tutorial/Makefile.am b/docs/tutorial/Makefile.am
index 73571e3..b24e99c 100644
--- a/docs/tutorial/Makefile.am
+++ b/docs/tutorial/Makefile.am
@@ -179,12 +179,21 @@ epub_via_xsl: $(srcdir)/C/gtkmm-tutorial.xml
 	$(AM_V_GEN)$(XSLTPROC) $(xslt_params) -o epub/ --xinclude --catalogs \
 		'$(DOCBOOK_STYLESHEET_EPUB)' $<
 
+# This epub/mobi generation is experimental. murrayc.
+epub: $(srcdir)/gtkmm-tutorial.epub
+
 # Create an epub generation of the C locale's version of the DocBook,
 # using our custom stylesheet and graphics.
 # This apparently uses the XSL stylesheets that we try to use in epub_via_xsl above.
-epub: $(srcdir)/C/gtkmm-tutorial.xml
+gtkmm-tutorial.epub: $(srcdir)/C/gtkmm-tutorial.xml
 	dbtoepub $<
 
+mobi: $(srcdir)/gtkmm-tutorial.mobi
+
+# ebook-convert is provided by the calibre UI app.
+gtkmm-tutorial.mobi: $(srcdir)/gtkmm-tutorial.epub
+	ebook-convert $< gtkmm-tutorial.mobi
+
 # Make sure that the documentation will always have been generated before
 # executing the commands of a rule that depends on files in html/.
 html/chapter-%.html html/sec-%.html: | html/index.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]