]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - Makefile
Mention how Marc Jeanmougin helped me with the cover image.
[text-free-culture-lessig.git] / Makefile
index 73280429117726f9a1d67c18b36ada6a8bd4091b..57f31fdd2536664d52ea5076116f46c3cea4f371 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,12 @@ url = http://www.sslug.dk/~chlor/lessig/freeculture.sgml.2004-04-01.gz
 # legalpaper, landscape, 11pt, 12pt, oneside, twocolumn, notitlepage,
 # titlepage, openany, draft, fleqn, leqno
 #  -P latex.class.options=a5paper
-DBLATEX = dblatex \
+DBLATEX = dblatex
+DBLATEX_OPTS = \
        -T simple \
        -b xetex \
        -r data/dblatex-postprocess \
        --indexstyle=myindexstyle.ist \
-       --xsl-user=data/dblatex-endnotes.xsl \
        --xsl-user=data/user_param.xsl \
        --xsl-user=data/xetex_param.xsl \
        -V \
@@ -30,7 +30,6 @@ XSLT = \
   data/user_param.xsl
 
 DB_XSLT = \
-  data/dblatex-endnotes.xsl \
   data/xetex_param.xsl
 
 HTML_XSLT = \
@@ -87,7 +86,7 @@ html: freeculture.nb.html freeculture.html
        echo "Using $$pipeline pipeline" ; \
        case "$$pipeline" in  \
        dblatex) \
-         PATH=$(PWD)/bin:$$PATH $(DBLATEX) $< ; \
+         PATH=$(PWD)/bin:$$PATH $(DBLATEX) $(DBLATEX_OPTS) $< ; \
          ;; \
        xmlto) \
          xmlto --noautosize \
@@ -136,9 +135,9 @@ freeculture.xml:
 
 # <beginpage> workaround can be removed when BTS #684137 is fixed in
 # po4a.
-freeculture.pot: freeculture.xml
+freeculture.pot: freeculture.xml cover-text.xml
        po4a-gettextize -o nodefault='<beginpage>' -o inline='<beginpage>' \
-         -f docbook -m $^  > $@.new && mv $@.new $@
+         -f docbook -m freeculture.xml -m cover-text.xml  > $@.new && mv $@.new $@
 
 stats: update-stats progress.png
 update-stats: freeculture.nb.po lint.nb
@@ -168,6 +167,9 @@ images/cc.svg:
 images/cc.png: images/cc.svg
        inkscape -z -D --export-height=200 -D --export-png=$(shell pwd)/$@ $^
 
+images/cover-art.pdf: images/cover-art.svg
+       inkscape --export-pdf=$@ $^
+
 .xcf.png:
        convert $^ $@
 
@@ -181,4 +183,4 @@ distclean: clean
        freeculture-dblatex.pdf \
        freeculture-xmlto-fop.pdf
 
-.SUFFIXES: .png .xcf .svg .xml
+.SUFFIXES: .png .xcf .svg .xml .pdf