comparison xml/ru/GNUmakefile @ 734:99ea52dbb4d4

Moved all rules to the main makefile leaving language specific makefiles with only the lists of translated documents.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 17 Oct 2012 14:30:05 +0000
parents 81ad082bc837
children 0ed4c093c026
comparison
equal deleted inserted replaced
733:7f8e85a50845 734:99ea52dbb4d4
1 DOC_LANG = ru
2
3 DOCS = \ 1 DOCS = \
4 faq \ 2 faq \
5 install \ 3 install \
6 windows \ 4 windows \
7 events \ 5 events \
14 http/request_processing \ 12 http/request_processing \
15 http/server_names \ 13 http/server_names \
16 http/configuring_https_servers \ 14 http/configuring_https_servers \
17 debugging_log \ 15 debugging_log \
18 16
19 DOCS_XML = $(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml)
20 DOCS_HTML = $(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
21
22 FAQ = \ 17 FAQ = \
23 sys_errlist \ 18 sys_errlist \
24
25 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml)
26 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html)
27 19
28 REFS = \ 20 REFS = \
29 ngx_core_module \ 21 ngx_core_module \
30 http/ngx_http_access_module \ 22 http/ngx_http_access_module \
31 http/ngx_http_addition_module \ 23 http/ngx_http_addition_module \
73 mail/ngx_mail_pop3_module \ 65 mail/ngx_mail_pop3_module \
74 mail/ngx_mail_proxy_module \ 66 mail/ngx_mail_proxy_module \
75 mail/ngx_mail_smtp_module \ 67 mail/ngx_mail_smtp_module \
76 mail/ngx_mail_ssl_module \ 68 mail/ngx_mail_ssl_module \
77 69
78 REFS_XML = $(foreach name, $(REFS), xml/$(DOC_LANG)/docs/$(name).xml) 70 TOP = \
79 REFS_HTML = $(foreach name, $(REFS), $(OUT)/$(DOC_LANG)/docs/$(name).html) 71 download \
80 72 support \
81 $(DOC_LANG): \
82 $(OUT)/$(DOC_LANG)/index.html \
83 $(OUT)/$(DOC_LANG)/download.html \
84 $(OUT)/$(DOC_LANG)/docs/index.html \
85 $(DOCS_HTML) \
86 $(REFS_HTML) \
87 $(FAQ_HTML) \
88 $(OUT)/$(DOC_LANG)/support.html \
89
90 $(OUT)/$(DOC_LANG)/docs/index.html: \
91 $(DOCS_XML) \
92 $(REFS_XML) \
93
94 xml/$(DOC_LANG)/docs/dirindex.xml: \
95 $(REFS_XML) \
96 xslt/dirindex.xslt
97 echo "<modules>$(patsubst %, \
98 <module name=\"%\"/>, $(filter %.xml,$^))</modules>" | \
99 xsltproc -o - \
100 --stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@) \
101 xslt/dirindex.xslt - | \
102 sed 's;xml/[^/]*/docs/;;g' > $@
103
104 $(OUT)/$(DOC_LANG)/docs/faq.html: \
105 $(FAQ_XML) \