[svnbook commit] r3451 - New Makefile target to create 'epub' elecronic book file. Requires ruby and recent xsl.
Ben Collins-Sussman
sussman at red-bean.com
Tue Mar 24 09:18:06 CDT 2009
Context: I recently started using a Kindle, so I'm toying with the
idea of posting a '.epub' universal electronic book file on the front
page of the website, right next to our HTML and PDF downloads.
The new docbook-xsl seems to work very well -- the book looks great on
my Kindle, with a nice TOC and links. No pictures, though. Gotta
figure out how to fix that. :-)
On Mon, Mar 23, 2009 at 10:44 PM, <codesite-noreply at google.com> wrote:
> Author: sussman
> Date: Mon Mar 23 20:16:36 2009
> New Revision: 3451
>
> Modified:
> trunk/src/tools/Makefile.base-rules
> trunk/src/tools/Makefile.base-vars
>
> Log:
> New Makefile target to create 'epub' elecronic book file. Requires ruby and
> recent xsl.
>
> Modified: trunk/src/tools/Makefile.base-rules
> ==============================================================================
> --- trunk/src/tools/Makefile.base-rules (original)
> +++ trunk/src/tools/Makefile.base-rules Mon Mar 23 20:16:36 2009
> @@ -72,6 +72,12 @@
> $(PS_TARGET): $(FO_TARGET) $(IMAGES)
> $(TOOLS_DIR)/bin/run-fop.sh -fo $(FO_TARGET) -ps $(PS_TARGET)
>
> +# Requires at least docbook-xsl-1.74
> +epub: $(EPUB_TARGET)
> +$(EPUB_TARGET): $(ALL_SOURCE)
> + $(ENSURE_XSL)
> + $(TOOLS_DIR)/xsl/epub/bin/dbtoepub $(XML_SOURCE)
> +
> # Install targets
> $(INSTALL_SUBDIR):
> $(MKDIR) $(INSTALL_SUBDIR)
>
> Modified: trunk/src/tools/Makefile.base-vars
> ==============================================================================
> --- trunk/src/tools/Makefile.base-vars (original)
> +++ trunk/src/tools/Makefile.base-vars Mon Mar 23 20:16:36 2009
> @@ -53,6 +53,7 @@
> PDF_TARGET = $(DIR)/$(OUTNAME).pdf
> PS_TARGET = $(DIR)/$(OUTNAME).ps
> FO_TARGET = $(DIR)/$(OUTNAME).fo
> +EPUB_TARGET = $(DIR)/$(OUTNAME).epub
> XML_SOURCE = $(DIR)/$(NAME).xml
> VERSION_SOURCE = $(DIR)/version.xml
> ALL_SOURCE = $(DIR)/*.xml
>
> _______________________________________________
> svnbook-dev mailing list
> svnbook-dev at red-bean.com
> http://www.red-bean.com/mailman/listinfo/svnbook-dev
>
More information about the svnbook-dev
mailing list