From 3971610fa518c33553a8216cdd6f763b35f58794 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Wed, 10 Sep 2008 20:24:08 +0000 Subject: [PATCH] Add validate target. ex:make validate FILES=comps-f10.xml.in --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e562a3d0..a2f50651 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ po: $(XMLINFILES) clean: @rm -fv *~ *.xml +validate: $(FILES) comps.rng + for f in $(FILES); do xmllint --noout --relaxng comps.rng $$f; done + %.xml: %.xml.in @python -c 'import libxml2; libxml2.parseFile("$<")' @if test ".$(CLEANUP)" == .yes; then xsltproc --novalid -o $< comps-cleanup.xsl $<; fi