docs-common Makefile.common,1.77,1.78

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Tue Feb 28 21:47:56 UTC 2006


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:




More information about the Fedora-docs-commits mailing list