X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/5a54c13f51b77d35430f8f81db1ba528b7e30630..50cc8ff17e5876c32f7a40367872126387c9ce8e:/Makefile diff --git a/Makefile b/Makefile index 2ba21a3..69d4b64 100644 --- 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 . -%.tex: %.xml - dblatex $(DBLATEX_OPTS) $^ - perl -p -i -e 's/ / /g' $@ - XMLLINTOPTS = --nonet --noout --xinclude --postvalid lint: $(SOURCE).xml xmllint $(XMLLINTOPTS) $^