]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - Makefile
Update how the web site is referenced.
[text-free-culture-lessig.git] / Makefile
index e8b6a0fd6b099f7e834fe79869b9924daa5140c5..4775fc21b91475ada38ad2395f5fe13a1102f7fe 100644 (file)
--- 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 <URL: http://www.sagehill.net/docbookxsl/index.html >.
-#   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