diff GNUmakefile @ 55:8213f3f1c93d

Updated DTD for modules and made modules documentation to be validated with xmllint.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 03 Oct 2011 12:07:55 +0000
parents d6fd8dcbe758
children 092d8068f845
line wrap: on
line diff
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -19,6 +19,9 @@ define	XSLScript
 	if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
 endef
 
+define	XMLLINT
+	xmllint --noout --valid $1
+endef
 
 define	XSLT
 	xsltproc -o $3							\
@@ -145,6 +148,11 @@ include 	xml/tr/GNUmakefile
 
 .SECONDARY:
 
+$(OUT)/%_module.html:	xml/%_module.xml				\
+		$(ARTICLE_DEPS)
+	$(call XMLLINT, $<)
+	$(call XSLT, xslt/article.xslt, $<, $@)
+
 $(OUT)/%.html:	xml/%.xml						\
 		$(ARTICLE_DEPS)
 	$(call XSLT, xslt/article.xslt, $<, $@)