From e30831a1ed1c8c379a77c1bdd1254060420c29c2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 17 Jul 2012 23:36:20 +0200 Subject: [PATCH 1/1] Check both XML files. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.47.2