diff xml/en/GNUmakefile @ 423:04ad7c1b1b04

Alphabetical index of directives.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 24 Feb 2012 10:15:45 +0000
parents c9c0550465c9
children 6330ca27a485
line wrap: on
line diff
--- a/xml/en/GNUmakefile
+++ b/xml/en/GNUmakefile
@@ -8,6 +8,7 @@ DOCS =									\
 		windows							\
 		control							\
 		hash							\
+		dirindex						\
 
 DOCS_XML =	$(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml)
 DOCS_HTML =	$(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
@@ -116,6 +117,16 @@ REFS_HTML =	$(foreach name, $(REFS), $(O
 		$(DOCS_XML)						\
 		$(REFS_XML)						\
 
+xml/$(DOC_LANG)/docs/dirindex.xml:					\
+		$(REFS_XML)						\
+		xslt/dirindex.xslt
+	echo "<modules>$(patsubst %,					\
+	<module name=\"%\"/>, $(filter %.xml,$^))</modules>" |		\
+	xsltproc -o -							\
+	--stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@)	\
+	xslt/dirindex.xslt - |						\
+	sed 's;xml/[^/]*/docs/;;g' > $@
+
 $(OUT)/$(DOC_LANG)/docs/introduction.html:				\
 		$(INTRO_XML)						\