X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/fc7312f56c3756cbd98a10a7cbf4027cdbc22881..c6e792021940ec6165ad6683fa1beb75ab2712bf:/Makefile diff --git a/Makefile b/Makefile index e8b6a0f..f799e68 100644 --- a/Makefile +++ b/Makefile @@ -9,19 +9,22 @@ 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 \ - --param lingua=nb \ --xsl-user=data/user_param.xsl \ --xsl-user=data/xetex_param.xsl \ + -V \ + -P latex.index.tool=xindy \ -p data/pdf.xsl DBTOEPUB = dbtoepub -IMAGES = images/cc.png +IMAGES = images/cc.png images/pattern-modern-media-ownership.png images/tom-the-dancing-bug.png XSLT = \ data/user_param.xsl @@ -35,6 +38,7 @@ HTML_XSLT = \ data/stylesheet-html.xsl PDF_XSLT = \ + $(DB_XSLT) \ $(XSLT) \ data/lulu.xsl \ data/licentia.xsl \ @@ -60,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. +# to format it. Index ranges are broken in oldstable, fixed in jessie. # # xmlto: # Alternative processing path to dblatex is to use xmlto using fop @@ -75,14 +79,14 @@ html: freeculture.nb.html freeculture.html # docbook-xsl: # Third alternative is to use xsltproc and fop directly, as # recommended by . -# This include images, but the index refs and footnote handling +# This include images, but the index refs and footnote/endnote handling # is broken. pipeline=dblatex; \ echo "Using $$pipeline pipeline" ; \ case "$$pipeline" in \ dblatex) \ - $(DBLATEX) $< ; \ + PATH=$(PWD)/bin:$$PATH $(DBLATEX) $(DBLATEX_OPTS) $< ; \ ;; \ xmlto) \ xmlto --noautosize \ @@ -162,3 +166,18 @@ images/cc.svg: images/cc.png: images/cc.svg inkscape -z -D --export-height=200 -D --export-png=$(shell pwd)/$@ $^ + +.xcf.png: + convert $^ $@ + +clean: + $(RM) *~ + +distclean: clean + $(RM) freeculture-docbook-xsl.pdf \ + freeculture-docbook-xsl.fo \ + freeculture-dblatex-db2latex.pdf \ + freeculture-dblatex.pdf \ + freeculture-xmlto-fop.pdf + +.SUFFIXES: .png .xcf .svg .xml .pdf