X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/e27e8b30caf2cac22501362b0da8790457d80631..85b740c5d03e0f5c4cbc2b7a17e83b71092d4a63:/Makefile diff --git a/Makefile b/Makefile index bf8c5a6..57f31fd 100644 --- a/Makefile +++ b/Makefile @@ -9,14 +9,16 @@ 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 \ + -P latex.index.tool=xindy \ -p data/pdf.xsl @@ -28,7 +30,6 @@ XSLT = \ data/user_param.xsl DB_XSLT = \ - data/dblatex-endnotes.xsl \ data/xetex_param.xsl HTML_XSLT = \ @@ -63,12 +64,12 @@ epub: freeculture.nb.epub freeculture.epub mobi: freeculture.nb.mobi freeculture.mobi html: freeculture.nb.html freeculture.html -%.pdf: %.xml $(IMAGES) $(PDF_XSLT) Makefile +%.pdf: %.xml $(IMAGES) $(PDF_XSLT) Makefile myclass.cls data/dblatex-postprocess # Possible pipelines: # # dblatex: # This converts the docbook content to latex and leave it to latex -# to format it. Index ranges are broken. +# to format it. Index ranges are broken in oldstable, fixed in jessie. # # xmlto: # Alternative processing path to dblatex is to use xmlto using fop @@ -85,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 \ @@ -134,9 +135,9 @@ freeculture.xml: # 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='' -o inline='' \ - -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 @@ -166,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 $^ $@ @@ -179,4 +183,4 @@ distclean: clean freeculture-dblatex.pdf \ freeculture-xmlto-fop.pdf -.SUFFIXES: .png .xcf .svg .xml +.SUFFIXES: .png .xcf .svg .xml .pdf