From: Petter Reinholdtsen Date: Tue, 29 Jul 2014 08:34:29 +0000 (+0200) Subject: Add rules to create mobi version. X-Git-Tag: edition-2015-10-10~636 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/0aa5360646e6d9327d7175ea91ac402d364f389b?ds=sidebyside Add rules to create mobi version. --- diff --git a/Makefile b/Makefile index de9d67b..de17bb1 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ PDF_XSLT = \ data/stylesheet-fo.xsl -all: lint lint.nb html epub pdf +all: lint lint.nb html epub pdf mobi freeculture.nb.po: freeculture.pot po4a --no-translations --msgmerge-opt --no-location po4a.cfg @@ -50,8 +50,9 @@ freeculture.nb.xml: freeculture.nb.po freeculture.xml po4a --translate-only freeculture.nb.xml po4a.cfg pdf: freeculture.nb.pdf freeculture.pdf -epub: freeculture.nb.epub -html: freeculture.html freeculture.nb.html +epub: freeculture.nb.epub freeculture.epub +mobi: freeculture.nb.mobi freeculture.mobi +html: freeculture.nb.html freeculture.html %.pdf: %.xml $(IMAGES) $(PDF_XSLT) Makefile # Possible pipelines: @@ -116,6 +117,9 @@ pdf-compare: freeculture.xml $(IMAGES) %.epub: %.xml $(IMAGES) $(DBTOEPUB) $< +%.mobi: %.epub + ebook-convert $< $@ + freeculture.xml: GET $(url) | gunzip > freeculture.xml