From: Petter Reinholdtsen Date: Tue, 17 Jul 2012 21:36:20 +0000 (+0200) Subject: Check both XML files. X-Git-Tag: edition-2015-10-10~2360 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/e30831a1ed1c8c379a77c1bdd1254060420c29c2 Check both XML files. --- diff --git a/Makefile b/Makefile index 366fe6e..3dbb07c 100644 --- a/Makefile +++ b/Makefile @@ -25,12 +25,12 @@ XP = xsltproc \ DBTOEPUB = dbtoepub -all: epub pdf +all: lint lint.nb epub pdf freeculture.nb.po: freeculture.pot po4a --no-translations --msgmerge-opt --no-location po4a.cfg -freeculture.nb.xml: lint freeculture.nb.po freeculture.xml +freeculture.nb.xml: freeculture.nb.po freeculture.xml po4a --translate-only freeculture.nb.xml po4a.cfg pdf: freeculture.nb.pdf freeculture.pdf @@ -58,5 +58,8 @@ stats: msgfmt -o /dev/null --statistics freeculture.nb.po 2>&1 \ ) | tee -a stats.txt -lint: +lint: freeculture.xml xmllint --nonet --noout --postvalid --xinclude freeculture.xml + +lint.nb: freeculture.nb.xml + xmllint --nonet --noout --postvalid --xinclude freeculture.nb.xml