annotate xml/en/GNUmakefile @ 721:81ad082bc837

Simplified things by including books.xslt, download.xslt and security.xslt into article.xslt, and always using article.xslt to generate HTMLs. While here, moved versions.xml from common dependencies to article dependencies. Fixed menu in 404.html by applying templates from menu.xslt, and fixed its dependency on DTD.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 12 Oct 2012 09:10:31 +0000
parents 6a37df6078a1
children 99ea52dbb4d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
1 DOC_LANG = en
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
3 DOCS = \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
4 faq \
263
be3772a799a2 English translation of "Installing nginx".
Ruslan Ermilov <ru@nginx.com>
parents: 259
diff changeset
5 install \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
6 windows \
553
6330ca27a485 Translated "events" into English.
Ruslan Ermilov <ru@nginx.com>
parents: 423
diff changeset
7 events \
681
67826df692cc Translated 'syntax' article into English and gave it a better name.
Vladimir Homutov <vl@nginx.com>
parents: 675
diff changeset
8 syntax \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
9 control \
215
abb48e50ff7f Translated the "Setting Up Hashes" article into English.
Ruslan Ermilov <ru@nginx.com>
parents: 212
diff changeset
10 hash \
423
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
11 dirindex \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
12 http/request_processing \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
13 http/server_names \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
14 http/configuring_https_servers \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
15 debugging_log \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
16 http/converting_rewrite_rules \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
17 howto_build_on_win32 \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
18 freebsd_tuning \
386
62468b793748 ec2 howto added
Sergey Budnevitch <sb@waeme.net>
parents: 384
diff changeset
19 howto_setup_development_environment_on_ec2 \
698
5182e655d055 DTrace article added
Sergey Budnevitch <sb@waeme.net>
parents: 681
diff changeset
20 nginx_dtrace_pid_provider \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
21
606
cb43695220b2 o Move introduction/ and howto/ are rather small so move those
Maxim Konovalov <maxim@nginx.com>
parents: 553
diff changeset
22 DOCS_XML = $(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml)
cb43695220b2 o Move introduction/ and howto/ are rather small so move those
Maxim Konovalov <maxim@nginx.com>
parents: 553
diff changeset
23 DOCS_HTML = $(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 12
diff changeset
24
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
25 FAQ = \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
26 welcome_nginx_facebook \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
27 faq/license_copyright \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
28 faq/accept_failed \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
29 faq/variables_in_config \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
30 faq/daemon_master_process_off \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
31 faq/chunked_encoding_from_backend \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
32 sys_errlist \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
34 FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml)
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
35 FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
37 REFS = \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
38 ngx_core_module \
315
e00f8f8c0486 Translated ngx_http_access_module, ngx_http_addition_module,
Ruslan Ermilov <ru@nginx.com>
parents: 298
diff changeset
39 http/ngx_http_access_module \
e00f8f8c0486 Translated ngx_http_access_module, ngx_http_addition_module,
Ruslan Ermilov <ru@nginx.com>
parents: 298
diff changeset
40 http/ngx_http_addition_module \
e00f8f8c0486 Translated ngx_http_access_module, ngx_http_addition_module,
Ruslan Ermilov <ru@nginx.com>
parents: 298
diff changeset
41 http/ngx_http_auth_basic_module \
e00f8f8c0486 Translated ngx_http_access_module, ngx_http_addition_module,
Ruslan Ermilov <ru@nginx.com>
parents: 298
diff changeset
42 http/ngx_http_autoindex_module \
e00f8f8c0486 Translated ngx_http_access_module, ngx_http_addition_module,
Ruslan Ermilov <ru@nginx.com>
parents: 298
diff changeset
43 http/ngx_http_browser_module \
350
55c1c4a1748f English translation of ngx_http_charset_module.
Ruslan Ermilov <ru@nginx.com>
parents: 348
diff changeset
44 http/ngx_http_charset_module \
670
0be0145c7ad8 Reduced diffs between makefiles.
Ruslan Ermilov <ru@nginx.com>
parents: 664
diff changeset
45 http/ngx_http_core_module \
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents: 369
diff changeset
46 http/ngx_http_dav_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
47 http/ngx_http_empty_gif_module \
298
0dcf07c393b6 English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents: 293
diff changeset
48 http/ngx_http_fastcgi_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
49 http/ngx_http_flv_module \
369
68d9e5f2ea81 English translation of ngx_http_geo_module.
Ruslan Ermilov <ru@nginx.com>
parents: 363
diff changeset
50 http/ngx_http_geo_module \
348
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
51 http/ngx_http_geoip_module \
675
08140f6b7964 Documented gunzip module and corresponding changes.
Vladimir Homutov <vl@nginx.com>
parents: 670
diff changeset
52 http/ngx_http_gunzip_module \
330
f94bcab2a6ae Translated ngx_http_gzip_module and ngx_http_gzip_static_module.
Ruslan Ermilov <ru@nginx.com>
parents: 315
diff changeset
53 http/ngx_http_gzip_module \
f94bcab2a6ae Translated ngx_http_gzip_module and ngx_http_gzip_static_module.
Ruslan Ermilov <ru@nginx.com>
parents: 315
diff changeset
54 http/ngx_http_gzip_static_module \
353
7b6155ac373b Revised the Russian version of ngx_http_headers_module and translated
Ruslan Ermilov <ru@nginx.com>
parents: 350
diff changeset
55 http/ngx_http_headers_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
56 http/ngx_http_image_filter_module \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
57 http/ngx_http_index_module \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
58 http/ngx_http_limit_conn_module \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
59 http/ngx_http_limit_req_module \
224
7f36795d99a2 Updated ngx_http_log_module documentation including translation into English.
Ruslan Ermilov <ru@nginx.com>
parents: 218
diff changeset
60 http/ngx_http_log_module \
348
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
61 http/ngx_http_map_module \
363
c7fccbe03827 English translation of ngx_http_memcached_module.
Ruslan Ermilov <ru@nginx.com>
parents: 360
diff changeset
62 http/ngx_http_memcached_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
63 http/ngx_http_mp4_module \
416
c9c0550465c9 English translation of ngx_http_perl_module.
Ruslan Ermilov <ru@nginx.com>
parents: 399
diff changeset
64 http/ngx_http_perl_module \
281
7142ddd2764c Translated current version of ngx_http_proxy_module documentation into English.
Ruslan Ermilov <ru@nginx.com>
parents: 263
diff changeset
65 http/ngx_http_proxy_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
66 http/ngx_http_random_index_module \
348
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
67 http/ngx_http_realip_module \
357
3d6c27e22625 Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents: 353
diff changeset
68 http/ngx_http_referer_module \
392
5fd99d37a3e6 English translation of ngx_http_rewrite_module.
Ruslan Ermilov <ru@nginx.com>
parents: 386
diff changeset
69 http/ngx_http_rewrite_module \
348
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
70 http/ngx_http_secure_link_module \
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
71 http/ngx_http_split_clients_module \
399
a56540cdcea5 English translation of ngx_http_ssi_module.
Ruslan Ermilov <ru@nginx.com>
parents: 392
diff changeset
72 http/ngx_http_ssi_module \
384
331a86bc51ff English translation of ngx_http_ssl_module.
Ruslan Ermilov <ru@nginx.com>
parents: 377
diff changeset
73 http/ngx_http_ssl_module \
348
5a848934a12d English translation of ngx_http_geoip_module, ngx_http_map_module,
Ruslan Ermilov <ru@nginx.com>
parents: 330
diff changeset
74 http/ngx_http_sub_module \
293
34246e706f48 English translation of the ngx_http_upstream_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents: 281
diff changeset
75 http/ngx_http_upstream_module \
360
43f379b12b76 English translation of ngx_http_userid_module.
Ruslan Ermilov <ru@nginx.com>
parents: 357
diff changeset
76 http/ngx_http_userid_module \
377
e72701967099 English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
77 http/ngx_http_xslt_module \
670
0be0145c7ad8 Reduced diffs between makefiles.
Ruslan Ermilov <ru@nginx.com>
parents: 664
diff changeset
78 mail/ngx_mail_auth_http_module \
664
8283b1048b27 Translated mail modules into English.
Vladimir Homutov <vl@nginx.com>
parents: 606
diff changeset
79 mail/ngx_mail_core_module \
8283b1048b27 Translated mail modules into English.
Vladimir Homutov <vl@nginx.com>
parents: 606
diff changeset
80 mail/ngx_mail_imap_module \
8283b1048b27 Translated mail modules into English.
Vladimir Homutov <vl@nginx.com>
parents: 606
diff changeset
81 mail/ngx_mail_pop3_module \
670
0be0145c7ad8 Reduced diffs between makefiles.
Ruslan Ermilov <ru@nginx.com>
parents: 664
diff changeset
82 mail/ngx_mail_proxy_module \
664
8283b1048b27 Translated mail modules into English.
Vladimir Homutov <vl@nginx.com>
parents: 606
diff changeset
83 mail/ngx_mail_smtp_module \
670
0be0145c7ad8 Reduced diffs between makefiles.
Ruslan Ermilov <ru@nginx.com>
parents: 664
diff changeset
84 mail/ngx_mail_ssl_module \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
85
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
86 REFS_XML = $(foreach name, $(REFS), xml/$(DOC_LANG)/docs/$(name).xml)
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
87 REFS_HTML = $(foreach name, $(REFS), $(OUT)/$(DOC_LANG)/docs/$(name).html)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
88
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
89 $(DOC_LANG): \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
90 $(OUT)/$(DOC_LANG)/index.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
91 $(OUT)/$(DOC_LANG)/download.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
92 $(OUT)/$(DOC_LANG)/security_advisories.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
93 $(OUT)/$(DOC_LANG)/docs/index.html \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
94 $(DOCS_HTML) \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
95 $(REFS_HTML) \
719
6a37df6078a1 Minimized diffs between different languages makefiles.
Ruslan Ermilov <ru@nginx.com>
parents: 718
diff changeset
96 $(OUT)/$(DOC_LANG)/pgp_keys.html \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
97 $(FAQ_HTML) \
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
98 $(OUT)/$(DOC_LANG)/links.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
99 $(OUT)/$(DOC_LANG)/books.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
100 $(OUT)/$(DOC_LANG)/support.html \
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
101 $(OUT)/$(DOC_LANG)/donation.html \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
102
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
103 $(OUT)/$(DOC_LANG)/docs/index.html: \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
104 $(DOCS_XML) \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
105 $(REFS_XML) \
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
106
423
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
107 xml/$(DOC_LANG)/docs/dirindex.xml: \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
108 $(REFS_XML) \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
109 xslt/dirindex.xslt
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
110 echo "<modules>$(patsubst %, \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
111 <module name=\"%\"/>, $(filter %.xml,$^))</modules>" | \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
112 xsltproc -o - \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
113 --stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@) \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
114 xslt/dirindex.xslt - | \
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
115 sed 's;xml/[^/]*/docs/;;g' > $@
04ad7c1b1b04 Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents: 416
diff changeset
116
218
6fed92e2bcea Renamed LANG to DOC_LANG (the former interacts badly with locale).
Ruslan Ermilov <ru@nginx.com>
parents: 215
diff changeset
117 $(OUT)/$(DOC_LANG)/docs/faq.html: \
212
18217133791f Unified makefiles so they are diff'able.
Ruslan Ermilov <ru@nginx.com>
parents: 204
diff changeset
118 $(FAQ_XML) \