Add validate target. ex:make validate FILES=comps-f10.xml.in

This commit is contained in:
Will Woods 2008-09-10 20:24:08 +00:00
parent bdc9dbb04f
commit 3971610fa5
1 changed files with 3 additions and 0 deletions

View File

@ -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