X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/b5b33bd4ac494d941ea03c69287e75a2c6fbd30d..601591653c70a775b244c808284ebcc8c9d8c004:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 0a19201..4482df9 100644 --- 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) \ @@ -61,6 +66,9 @@ freeculture.nb.po: freeculture.pot freeculture.nb.xml: freeculture.nb.po freeculture.xml po4a --translate-only freeculture.nb.xml po4a.cfg +freeculture.fr.xml: freeculture.fr.po freeculture.xml + po4a --translate-only freeculture.fr.xml po4a.cfg + freeculture.es_419.po: freeculture.pot po4a --no-translations --msgmerge-opt --no-location po4a.cfg freeculture.es_419.xml: freeculture.es_419.po freeculture.xml @@ -131,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 $< $@ @@ -168,6 +178,9 @@ lint: freeculture.xml lint.nb: freeculture.nb.xml xmllint $(XMLLINTOPTS) freeculture.nb.xml +lint.fr: freeculture.fr.xml + xmllint $(XMLLINTOPTS) freeculture.fr.xml + images/cc.svg: wget -O $@ http://upload.wikimedia.org/wikipedia/commons/9/97/CC_some_rights_reserved_new_2.svg @@ -180,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