diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-28 21:47:49 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-28 21:47:49 +0000 |
commit | 23eb7aa5bcede01696366fd503a6ac852dcff6f8 (patch) | |
tree | 9408f176687c05df5327ff90665ce0541f0ead58 /Makefile.common | |
parent | f780441a986f285d7743f45a35e0989db9fe9581 (diff) | |
download | fedora-doc-utils-23eb7aa5bcede01696366fd503a6ac852dcff6f8.tar.gz fedora-doc-utils-23eb7aa5bcede01696366fd503a6ac852dcff6f8.tar.xz fedora-doc-utils-23eb7aa5bcede01696366fd503a6ac852dcff6f8.zip |
Added "make validate-xml-${LANG}" and "make validate-xml" targets to
validate the document XML without performing any subsequent processing.
Diffstat (limited to 'Makefile.common')
-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: |