]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Place colophon page in PDF on title verso page.
[text-madewithcc.git] / Makefile
index 2ba21a320c1900df6c514d0bc9c5a931fab1e562..69d4b644f390fac14248605b40fcb9153b5f618f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,9 +95,9 @@ pdf: $(SOURCE).pdf
        for LANG in $(LANGS); do \
            $(MAKE) $(SOURCE).$$LANG.pdf ; \
        done
-%.pdf: %.tex
-       pdflatex $^
-       pdflatex $^
+DBLATEX_OPTS = -T simple -t pdf -b xetex -p extra/pdf.xsl
+%.pdf: %.xml
+       dblatex $(DBLATEX_OPTS) $^
 
 epub: $(SOURCE).epub
        for LANG in $(LANGS); do \
@@ -106,13 +106,6 @@ epub: $(SOURCE).epub
 %.epub: %.xml
        dbtoepub $^
 
-DBLATEX_OPTS = -T simple -t tex -b xetex -p extra/pdf.xsl
-# Replace Unicode Hair Space (U+200A) with space, as   is not
-# handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
-%.tex: %.xml
-       dblatex $(DBLATEX_OPTS) $^
-       perl -p -i -e 's/ / /g' $@
-
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
        xmllint $(XMLLINTOPTS) $^