X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/df97dbd0401cc87c0f5a2f07a26e3998d753ed45..2ee54a4f11de56981ff44a6268c5ad156862d2e0:/Makefile diff --git a/Makefile b/Makefile index 0841360..286d934 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,7 @@ $(SOURCE).xml: $(SOURCE).md fixup-docbook.rb pandoc -s -o $$TEMP $(PANDOC_OPTS) $(SOURCE).md && \ ruby fixup-docbook.rb $$TEMP $@ && \ rm $$TEMP + xmllint --format $@ > $@.new && mv $@.new $@ pdf: $(SOURCE).pdf for LANG in $(LANGS); do \ @@ -101,8 +102,7 @@ DBLATEX_OPTS = -T simple -t tex -b xetex -p extra/pdf.xsl # handled by LaTeX/dblatex, see . %.tex: %.xml dblatex $(DBLATEX_OPTS) $^ - perl -p -i -e 's/ / /g; \ - s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/;' $@ + perl -p -i -e 's/ / /g' $@ XMLLINTOPTS = --nonet --noout --xinclude --postvalid lint: $(SOURCE).xml