]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Check both XML files.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 17 Jul 2012 21:36:20 +0000 (23:36 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 17 Jul 2012 21:36:20 +0000 (23:36 +0200)
Makefile

index 366fe6e9523b033208f094d28a906060eb7e2901..3dbb07c1fad8576dc4930581c153e424130fabeb 100644 (file)
--- 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