X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/50cc8ff17e5876c32f7a40367872126387c9ce8e..d51a2a677f3bf0b1792cfc920ebf2ad5f7c65cfc:/Makefile diff --git a/Makefile b/Makefile index 69d4b64..3e55d95 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,12 @@ $(SOURCE).md: $(SOURCE).odt fixup.rb pot: po/mwcc.pot po/*/mwcc.po po/mwcc.pot: $(SOURCE).xml TEMP=`tempfile -p mwcc` && \ - po4a-gettextize -f docbook -m $(SOURCE).xml -p $$TEMP -M utf-8 --package-name 'Made with Creative Commons' --package-version $(VERSION) && \ + po4a-gettextize -f docbook -m $(SOURCE).xml -p $$TEMP -M utf-8 \ + -o nodefault="
" \ + -o untranslated="" \ + -o translated='
' \ + --package-name 'Made with Creative Commons' \ + --package-version $(VERSION) && \ echo '# MADE WITH CREATIVE COMMONS' > $@ && \ echo '# Copyright (C) 2017 by Creative Commons.' >> $@ && \ echo '# This file is published under a Creative Commons Attribution-ShareAlike license (CC BY-SA), version 4.0' >> $@ && \ @@ -102,10 +107,15 @@ DBLATEX_OPTS = -T simple -t pdf -b xetex -p extra/pdf.xsl epub: $(SOURCE).epub for LANG in $(LANGS); do \ $(MAKE) $(SOURCE).$$LANG.epub ; \ + flightcrew-cli $(SOURCE).$$LANG.epub || exit 1 ; \ done %.epub: %.xml dbtoepub $^ +# Useful for spell checking the text +%.txt: %.xml + xmlto txt $< + XMLLINTOPTS = --nonet --noout --xinclude --postvalid lint: $(SOURCE).xml xmllint $(XMLLINTOPTS) $^