[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
docs-common Makefile.common,1.77,1.78
- From: "Tommy Reynolds" (jtr) <fedora-docs-commits redhat com>
- To: fedora-docs-commits redhat com
- Subject: docs-common Makefile.common,1.77,1.78
- Date: Tue, 28 Feb 2006 16:47:56 -0500
Author: jtr
Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30260
Modified Files:
Makefile.common
Log Message:
Added "make validate-xml-${LANG}" and "make validate-xml" targets to
validate the document XML without performing any subsequent processing.
Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- Makefile.common 28 Feb 2006 12:38:52 -0000 1.77
+++ Makefile.common 28 Feb 2006 21:47:49 -0000 1.78
@@ -771,6 +771,30 @@
#########################################################################
#########################################################################
+# '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:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]