From 23eb7aa5bcede01696366fd503a6ac852dcff6f8 Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Tue, 28 Feb 2006 21:47:49 +0000 Subject: Added "make validate-xml-${LANG}" and "make validate-xml" targets to validate the document XML without performing any subsequent processing. --- Makefile.common | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Makefile.common b/Makefile.common index 4cc2e53..b1fe650 100644 --- a/Makefile.common +++ b/Makefile.common @@ -770,6 +770,30 @@ $(foreach L,${PRI_LANG} ${OTHERS},$(eval $(call LOCALE_template,${L}))) # ######################################################################### +######################################################################### +# 'VALIDATE_template' emits rules and targets to validate the XML for the +# specified ${LANG} +define VALIDATE_template +.PHONY: validate-xml-${1} + +validate-xml-${1}: ${XMLFILES-${1}} + ${XMLLINT} --noout --xinclude --postvalid ${1}/${DOCBASE}.xml + +help:: + @printf ${TFMT} 'validate-xml-${1}' 'Validate locale "${1}" XML' +endef + +$(foreach L,${PRI_LANG} ${OTHERS},$(eval $(call VALIDATE_template,${L}))) + +.PHONY: validate-xml + +validate-xml: $(foreach L,${PRI_LANG} ${OTHERS},validate-xml-${L}) + +help:: + @printf ${TFMT} 'validate-xml' 'Validate all XML' +# +######################################################################### + ######################################################################### # End of Makefile.common ######################################################################### -- cgit