Mercurial > hg > nginx-site
comparison xml/cn/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 | 9934338f83af |
children | ceb8a4e374b7 |
comparison
equal
deleted
inserted
replaced
733:7f8e85a50845 | 734:99ea52dbb4d4 |
---|---|
1 DOC_LANG = cn | |
2 | |
3 DOCS = \ | 1 DOCS = \ |
4 faq \ | 2 faq \ |
5 windows \ | 3 windows \ |
6 syntax \ | 4 syntax \ |
7 dirindex \ | 5 dirindex \ |
9 http/server_names \ | 7 http/server_names \ |
10 http/configuring_https_servers \ | 8 http/configuring_https_servers \ |
11 debugging_log \ | 9 debugging_log \ |
12 http/converting_rewrite_rules \ | 10 http/converting_rewrite_rules \ |
13 | 11 |
14 DOCS_XML = $(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml) | |
15 DOCS_HTML = $(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html) | |
16 | |
17 FAQ = \ | 12 FAQ = \ |
18 welcome_nginx_facebook \ | 13 welcome_nginx_facebook \ |
19 sys_errlist \ | 14 sys_errlist \ |
20 | |
21 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml) | |
22 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html) | |
23 | 15 |
24 REFS = \ | 16 REFS = \ |
25 http/ngx_http_access_module \ | 17 http/ngx_http_access_module \ |
26 http/ngx_http_addition_module \ | 18 http/ngx_http_addition_module \ |
27 http/ngx_http_auth_basic_module \ | 19 http/ngx_http_auth_basic_module \ |
28 http/ngx_http_autoindex_module \ | 20 http/ngx_http_autoindex_module \ |
29 http/ngx_http_browser_module \ | 21 http/ngx_http_browser_module \ |
30 http/ngx_http_gzip_static_module \ | 22 http/ngx_http_gzip_static_module \ |
31 http/ngx_http_index_module \ | 23 http/ngx_http_index_module \ |
32 http/ngx_http_limit_conn_module \ | 24 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 | |
37 $(DOC_LANG): \ | |
38 $(OUT)/$(DOC_LANG)/index.html \ | |
39 $(OUT)/$(DOC_LANG)/docs/index.html \ | |
40 $(DOCS_HTML) \ | |
41 $(REFS_HTML) \ | |
42 $(FAQ_HTML) \ | |
43 | |
44 $(OUT)/$(DOC_LANG)/docs/index.html: \ | |
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' > $@ | |
57 | |
58 $(OUT)/$(DOC_LANG)/docs/faq.html: \ | |
59 $(FAQ_XML) \ |