]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Add rules to create mobi version.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 29 Jul 2014 08:34:29 +0000 (10:34 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 29 Jul 2014 08:34:29 +0000 (10:34 +0200)
Makefile

index de9d67b5ebaac2ee8b525cbe9c3927edbd79be81..de17bb16f4292b1786dc5de1d26cba4aaaca0e02 100644 (file)
--- 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