]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - Makefile
Fix <dedication> pages in epub and html version.
[text-free-culture-lessig.git] / Makefile
index eb9e4ba041e92e943048bc7529c1b128346bd1cf..21666549c5fdff8122436246e11daa7ef6a5e20d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,11 @@ HTML_XSLT = \
   data/html.xsl \
   data/stylesheet-html.xsl
 
+EPUB_XSLT = \
+  $(XSLT) \
+  data/html.xsl \
+  data/stylesheet-epub.xsl
+
 PDF_XSLT = \
   $(DB_XSLT) \
   $(XSLT) \
@@ -134,8 +139,10 @@ pdf-compare: freeculture.xml $(IMAGES)
 %.txt: %.xml $(IMAGES)
        xmlto txt $<
 
-%.epub: %.xml $(IMAGES)
-       $(DBTOEPUB) $<
+%.epub: %.xml $(IMAGES) $(EPUB_XSLT)
+       $(DBTOEPUB) \
+       -s data/stylesheet-epub.xsl \
+       $<
 
 %.mobi: %.epub
        ebook-convert $< $@