comparison xml/en/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 = en
2
3 DOCS = \ 1 DOCS = \
4 faq \ 2 faq \
5 install \ 3 install \
6 windows \ 4 windows \
7 events \ 5 events \
17 howto_build_on_win32 \ 15 howto_build_on_win32 \
18 freebsd_tuning \ 16 freebsd_tuning \
19 howto_setup_development_environment_on_ec2 \ 17 howto_setup_development_environment_on_ec2 \
20 nginx_dtrace_pid_provider \ 18 nginx_dtrace_pid_provider \
21 19
22 DOCS_XML = $(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml)
23 DOCS_HTML = $(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
24
25 FAQ = \ 20 FAQ = \
26 welcome_nginx_facebook \ 21 welcome_nginx_facebook \
27 faq/license_copyright \ 22 faq/license_copyright \
28 faq/accept_failed \ 23 faq/accept_failed \
29 faq/variables_in_config \ 24 faq/variables_in_config \
30 faq/daemon_master_process_off \ 25 faq/daemon_master_process_off \
31 faq/chunked_encoding_from_backend \ 26 faq/chunked_encoding_from_backend \
32 sys_errlist \ 27 sys_errlist \
33
34 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml)
35 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html)
36 28
37 REFS = \ 29 REFS = \
38 ngx_core_module \ 30 ngx_core_module \
39 http/ngx_http_access_module \ 31 http/ngx_http_access_module \
40 http/ngx_http_addition_module \ 32 http/ngx_http_addition_module \
81 mail/ngx_mail_pop3_module \ 73 mail/ngx_mail_pop3_module \
82 mail/ngx_mail_proxy_module \ 74 mail/ngx_mail_proxy_module \
83 mail/ngx_mail_smtp_module \ 75 mail/ngx_mail_smtp_module \
84 mail/ngx_mail_ssl_module \ 76 mail/ngx_mail_ssl_module \
85 77
86 REFS_XML = $(foreach name, $(REFS), xml/$(DOC_LANG)/docs/$(name).xml) 78 TOP = \
87 REFS_HTML = $(foreach name, $(REFS), $(OUT)/$(DOC_LANG)/docs/$(name).html) 79 download \
88 80 security_advisories \
89 $(DOC_LANG): \ 81 pgp_keys \
90 $(OUT)/$(DOC_LANG)/index.html \ 82 links \
91 $(OUT)/$(DOC_LANG)/download.html \ 83 books \
92 $(OUT)/$(DOC_LANG)/security_advisories.html \ 84 support \
93 $(OUT)/$(DOC_LANG)/docs/index.html \ 85 donation \
94 $(DOCS_HTML) \
95 $(REFS_HTML) \
96 $(OUT)/$(DOC_LANG)/pgp_keys.html \
97 $(FAQ_HTML) \
98 $(OUT)/$(DOC_LANG)/links.html \
99 $(OUT)/$(DOC_LANG)/books.html \
100 $(OUT)/$(DOC_LANG)/support.html \
101 $(OUT)/$(DOC_LANG)/donation.html \
102
103 $(OUT)/$(DOC_LANG)/docs/index.html: \
104 $(DOCS_XML) \
105 $(REFS_XML) \
106
107 xml/$(DOC_LANG)/docs/dirindex.xml: \
108 $(REFS_XML) \
109 xslt/dirindex.xslt
110 echo "<modules>$(patsubst %, \
111 <module name=\"%\"/>, $(filter %.xml,$^))</modules>" | \
112 xsltproc -o - \
113 --stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@) \
114 xslt/dirindex.xslt - | \
115 sed 's;xml/[^/]*/docs/;;g' > $@
116
117 $(OUT)/$(DOC_LANG)/docs/faq.html: \
118 $(FAQ_XML) \