]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - Makefile
Adjust image sizes a bit more.
[text-free-culture-lessig.git] / Makefile
index eb9e4ba041e92e943048bc7529c1b128346bd1cf..4482df94ecc226ab1ac4dd7565871383758870bd 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 $< $@
@@ -186,6 +193,9 @@ images/cover-art.pdf: images/cover-art.svg
 images/nb/cover-art.pdf: images/nb/cover-art.svg
        inkscape --export-dpi=600 --export-pdf=$@ $^
 
+images/fr/cover-art.pdf: images/fr/cover-art.svg
+       inkscape --export-dpi=600 --export-pdf=$@ $^
+
 INKSCAPE_FRONTCOORDINATES = 603.54:0:1154.70:832.500
 images/cover-front-72dpi.png: images/cover-art.svg Makefile
        inkscape --export-dpi=72 --export-png=$@ -a $(INKSCAPE_FRONTCOORDINATES) images/cover-art.svg