diff options
| -rw-r--r-- | Makefile.common | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common index 4cc2e53..b1fe650 100644 --- a/Makefile.common +++ b/Makefile.common @@ -771,6 +771,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 ######################################################################### # Local variables: |
