]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - Makefile
Add stringparam insert.xref.page.number=1 to include side number in
[text-free-culture-lessig.git] / Makefile
index 12a9dfef0ddc857be191e155bcec877fdf1fb994..326fb61bd2b4b45cde6ec9a197627b6c5a7f16ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,24 +39,28 @@ epub: freeculture.nb.epub
 html: freeculture.html freeculture.nb.html 
 
 %.pdf: %.xml $(IMAGES) $(XSLTS)
-       $(DBLATEX) $<
+#      $(DBLATEX) $<
 
 # Alternative processing path to dblatex is to use xmlto using fop to
 # create PDF like this.  The PDF output (visual design) is better, but
-# the PDF index and footnote handling is worse and images are missing.
+# the footnote handling is worse and images are missing.
 #      xmlto --noautosize --stringparam paper.type=A5 \
+#        --stringparam fop1.extensions=1 \
+#        --stringparam insert.xref.page.number=1 \
 #        --with-fop pdf $<
 
 # 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 and footnote handling is
+# This include images, but the index refs and footnote handling is
 # broken.
-#      xsltproc  \
-#        --output myfile.fo    \
-#        --stringparam paper.type A5 \
-#        /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \
-#        $<
-#      fop -fo myfile.fo -pdf $@
+       xsltproc  \
+         --output myfile.fo    \
+         --stringparam paper.type A5 \
+         --stringparam fop1.extensions 1 \
+         --stringparam insert.xref.page.number 1 \
+         /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \
+         $<
+       fop -fo myfile.fo -pdf $@
 
 %.html: %.xml $(IMAGES)
        xmlto html-nochunks $<
@@ -64,8 +68,8 @@ html: freeculture.html freeculture.nb.html
 %.txt: %.xml $(IMAGES)
        xmlto txt $<
 
-%.epub: %.xml, $(IMAGES)
-       $(DBTOEPUB) $^ $<
+%.epub: %.xml $(IMAGES)
+       $(DBTOEPUB) $<
 
 freeculture.xml:
        GET $(url) | gunzip > freeculture.xml
@@ -74,7 +78,7 @@ freeculture.pot: freeculture.xml
        po4a-gettextize -f docbook -m $^  > $@.new && mv $@.new $@
 
 stats: update-stats progress.png
-update-stats:
+update-stats: freeculture.nb.po
        ( \
        printf "%s " $$(date +"%Y-%m-%dT%H%M") ; \
        msgfmt -o /dev/null --statistics freeculture.nb.po 2>&1 \