]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / Makefile
index 2ba21a320c1900df6c514d0bc9c5a931fab1e562..87758dbbd2cb305dd9916ab6f62709c963e0be49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,24 +95,18 @@ 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 \
            $(MAKE) $(SOURCE).$$LANG.epub ; \
+           flightcrew-cli $(SOURCE).$$LANG.epub || exit 1 ; \
        done
 %.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) $^