comparison xml/cn/GNUmakefile @ 720:9934338f83af

Updated the Chinese documentation.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Oct 2012 10:23:05 +0000
parents 8afb4cbc63bb
children 99ea52dbb4d4
comparison
equal deleted inserted replaced
719:6a37df6078a1 720:9934338f83af
1 DOC_LANG = cn 1 DOC_LANG = cn
2 2
3 DOCS = \ 3 DOCS = \
4 faq \ 4 faq \
5 windows \ 5 windows \
6 syntax \
7 dirindex \
6 http/request_processing \ 8 http/request_processing \
7 http/server_names \ 9 http/server_names \
8 http/configuring_https_servers \ 10 http/configuring_https_servers \
9 debugging_log \ 11 debugging_log \
10 http/converting_rewrite_rules \ 12 http/converting_rewrite_rules \
17 sys_errlist \ 19 sys_errlist \
18 20
19 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml) 21 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml)
20 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html) 22 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html)
21 23
24 REFS = \
25 http/ngx_http_access_module \
26 http/ngx_http_addition_module \
27 http/ngx_http_auth_basic_module \
28 http/ngx_http_autoindex_module \
29 http/ngx_http_browser_module \
30 http/ngx_http_gzip_static_module \
31 http/ngx_http_index_module \
32 http/ngx_http_limit_conn_module \
33
34 REFS_XML = $(foreach name, $(REFS), xml/$(DOC_LANG)/docs/$(name).xml)
35 REFS_HTML = $(foreach name, $(REFS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
36
22 $(DOC_LANG): \ 37 $(DOC_LANG): \
23 $(OUT)/$(DOC_LANG)/index.html \ 38 $(OUT)/$(DOC_LANG)/index.html \
24 $(OUT)/$(DOC_LANG)/docs/index.html \ 39 $(OUT)/$(DOC_LANG)/docs/index.html \
25 $(DOCS_HTML) \ 40 $(DOCS_HTML) \
41 $(REFS_HTML) \
26 $(FAQ_HTML) \ 42 $(FAQ_HTML) \
27 43
28 $(OUT)/$(DOC_LANG)/docs/index.html: \ 44 $(OUT)/$(DOC_LANG)/docs/index.html: \
29 $(DOCS_XML) \ 45 $(DOCS_XML) \
46 $(REFS_XML) \
47
48 xml/$(DOC_LANG)/docs/dirindex.xml: \
49 $(REFS_XML) \
50 xslt/dirindex.xslt
51 echo "<modules>$(patsubst %, \
52 <module name=\"%\"/>, $(filter %.xml,$^))</modules>" | \
53 xsltproc -o - \
54 --stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@) \
55 xslt/dirindex.xslt - | \
56 sed 's;xml/[^/]*/docs/;;g' > $@
30 57
31 $(OUT)/$(DOC_LANG)/docs/faq.html: \ 58 $(OUT)/$(DOC_LANG)/docs/faq.html: \
32 $(FAQ_XML) \ 59 $(FAQ_XML) \