X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/fc7312f56c3756cbd98a10a7cbf4027cdbc22881..abf71f1b3703fea23db90484f200458efc9c06f5:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index e8b6a0f..4775fc2 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,9 @@ url = http://www.sslug.dk/~chlor/lessig/freeculture.sgml.2004-04-01.gz DBLATEX = dblatex \ -T simple \ -b xetex \ + -r data/dblatex-postprocess \ --indexstyle=myindexstyle.ist \ - --param lingua=nb \ + --xsl-user=data/dblatex-endnotes.xsl \ --xsl-user=data/user_param.xsl \ --xsl-user=data/xetex_param.xsl \ -p data/pdf.xsl @@ -21,7 +22,7 @@ DBLATEX = dblatex \ 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 @@ -65,7 +66,7 @@ html: freeculture.nb.html freeculture.html # # dblatex: # This converts the docbook content to latex and leave it to latex -# to format it. +# to format it. Index ranges are broken. # # xmlto: # Alternative processing path to dblatex is to use xmlto using fop @@ -75,14 +76,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) $< ; \ ;; \ xmlto) \ xmlto --noautosize \ @@ -162,3 +163,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