annotate GNUmakefile @ 600:89a4e934d207

Emit a warning with a link to English original if translation is outdated.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Jul 2012 09:27:55 +0000
parents 19c9bd574db0
children e0544f2c4a70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
1
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2 OUT = libxslt
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
3 TEXT = text
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
4 ZIP = gzip
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
5 NGINX_ORG = /data/www/nginx.org
146
356bcdeb008f * Fixed incorrect file permissions on file creation with an external shell wrapper.
Sergey Budnevitch <sb@waeme.net>
parents: 145
diff changeset
6 SHELL = ./umasked.sh
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
8 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\*
100
233f9c8c23e5 Missing changes necessary to properly support site modifications
Ruslan Ermilov <ru@nginx.com>
parents: 94
diff changeset
9 RSYNC = rsync -v -rpc --exclude=.svn
190
c52987a234e2 More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents: 182
diff changeset
10 CHMOD = /bin/chmod -R g=u
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 define XSLScript
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
14 java -cp $(CP) \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 com.pault.StyleSheet \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 -x com.pault.XX -y com.pault.XX \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17 $(1) xsls/dump.xsls \
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
18 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
19
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 endef
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 define XSLT
124
73df20b5963c xmllint is now always run.
Ruslan Ermilov <ru@nginx.com>
parents: 100
diff changeset
24 xmllint --noout --valid $2
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 xsltproc -o $3 \
600
89a4e934d207 Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents: 596
diff changeset
26 $(shell f=`echo $2 | sed 's;^xml/[^/]*/;xml/en/;'`; \
89a4e934d207 Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents: 596
diff changeset
27 [ -f $$f ] && echo --stringparam ORIGIN "../$$f") \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 $(shell echo $4 \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30 $1 $2
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 endef
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
33 define JPEGNORM
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
34 jpegtopnm $1 \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
35 | pamscale -width=150 \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
36 | pnmtojpeg -quality=95 -optimize -dct=float \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
37 > $2
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
38 endef
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
40
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
41 ARTICLE_DEPS = \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
42 xml/menu.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
43 xml/versions.xml \
569
f9207a33992f Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents: 558
diff changeset
44 xml/i18n.xml \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
45 dtd/article.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
46 dtd/content.dtd \
584
663fcbeca817 Added module.dtd to $(ARTICLE_DEPS) so modules depend on it.
Ruslan Ermilov <ru@nginx.com>
parents: 573
diff changeset
47 dtd/module.dtd \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
48 xslt/article.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
49 xslt/dirname.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
50 xslt/link.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
51 xslt/style.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
52 xslt/body.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
53 xslt/menu.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
54 xslt/donate.xslt \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
55 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
56 xslt/directive.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
57 xslt/content.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
58 xslt/versions.xslt
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
59
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
60 NEWS_DEPS = \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
61 xml/menu.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
62 xml/versions.xml \
569
f9207a33992f Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents: 558
diff changeset
63 xml/i18n.xml \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
64 dtd/news.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
65 dtd/content.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
66 xslt/news.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
67 xslt/dirname.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
68 xslt/link.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
69 xslt/style.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
70 xslt/body.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
71 xslt/menu.xslt \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
72 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
73 xslt/content.xslt
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
74
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
75 DOWNLOAD_DEPS = \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
76 xml/menu.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
77 xml/versions.xml \
569
f9207a33992f Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents: 558
diff changeset
78 xml/i18n.xml \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
79 dtd/article.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
80 dtd/content.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
81 xslt/download.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
82 xslt/dirname.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
83 xslt/link.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
84 xslt/style.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
85 xslt/body.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
86 xslt/menu.xslt \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
87 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
88 xslt/content.xslt
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
89
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
90 SECURITY_DEPS = \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
91 xml/menu.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
92 xml/versions.xml \
569
f9207a33992f Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents: 558
diff changeset
93 xml/i18n.xml \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
94 dtd/article.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
95 dtd/content.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
96 xslt/security.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
97 xslt/dirname.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
98 xslt/link.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
99 xslt/style.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
100 xslt/body.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
101 xslt/menu.xslt \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
102 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
103 xslt/content.xslt
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
104
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
105 BOOK_DEPS = \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
106 xml/menu.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
107 xml/versions.xml \
569
f9207a33992f Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents: 558
diff changeset
108 xml/i18n.xml \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
109 dtd/article.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
110 dtd/content.dtd \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
111 xslt/books.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
112 xslt/dirname.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
113 xslt/link.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
114 xslt/style.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
115 xslt/body.xslt \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
116 xslt/menu.xslt \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
117 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
118 xslt/content.xslt
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
119
558
149f54c158f0 Added initial translation in simplified Chinese submitted by the
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
120 LANGS = en ru cn he ja tr
60
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
121
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
122 all: news arx 404 $(LANGS)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
123
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
124 news: $(OUT)/index.html $(OUT)/index.rss
307
dff45e92da4b Generate 2011.html but don't link it to the menu yet.
Ruslan Ermilov <ru@nginx.com>
parents: 284
diff changeset
125 arx: $(OUT)/2011.html $(OUT)/2010.html $(OUT)/2009.html
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
126 404: $(OUT)/404.html
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
127
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
128
60
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
129 include $(foreach lang, $(LANGS), xml/$(lang)/GNUmakefile)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
130
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
131
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
132 $(OUT)/index.html: \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
133 xml/index.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
134 $(NEWS_DEPS)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
135 $(call XSLT, xslt/news.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
136
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
137 $(OUT)/index.rss: \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
138 xml/index.xml \
31
dc74e3a8f324 Fixing the previous commit.
Igor Sysoev <igor@sysoev.ru>
parents: 30
diff changeset
139 $(NEWS_DEPS) \
dc74e3a8f324 Fixing the previous commit.
Igor Sysoev <igor@sysoev.ru>
parents: 30
diff changeset
140 xslt/rss.xslt
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
141 $(call XSLT, xslt/rss.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
142
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
143
307
dff45e92da4b Generate 2011.html but don't link it to the menu yet.
Ruslan Ermilov <ru@nginx.com>
parents: 284
diff changeset
144 $(OUT)/2011.html \
47
0b218409e2e7 Merged targets for creating past years news.
Ruslan Ermilov <ru@nginx.com>
parents: 40
diff changeset
145 $(OUT)/2010.html \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
146 $(OUT)/2009.html: \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
147 xml/index.xml \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
148 $(NEWS_DEPS)
47
0b218409e2e7 Merged targets for creating past years news.
Ruslan Ermilov <ru@nginx.com>
parents: 40
diff changeset
149 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@)))
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
150
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
151 $(OUT)/404.html: \
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
152 xml/404.xml \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
153 xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
154 dtd/article.dtd \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
155 dtd/content.dtd \
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 495
diff changeset
156 xslt/ga.xslt \
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
157 xslt/error.xslt
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
158 $(call XSLT, xslt/error.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
159
75
2bf4cd2787c5 Added DTDs to make xmllint happy.
Maxim Dounin <mdounin@mdounin.ru>
parents: 60
diff changeset
160 $(OUT)/%.html: xml/%.xml \
55
8213f3f1c93d Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents: 49
diff changeset
161 $(ARTICLE_DEPS)
8213f3f1c93d Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents: 49
diff changeset
162 $(call XSLT, xslt/article.xslt, $<, $@)
8213f3f1c93d Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents: 49
diff changeset
163
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
164
428
fc2bd185dc02 Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents: 425
diff changeset
165 # Prevent intermediate .xslt files from being removed.
fc2bd185dc02 Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents: 425
diff changeset
166 $(patsubst xsls/%.xsls,xslt/%.xslt,$(wildcard xsls/*.xsls)):
fc2bd185dc02 Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents: 425
diff changeset
167
30
8ed43632a28c Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents: 29
diff changeset
168 xslt/%.xslt: xsls/%.xsls \
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
169 xsls/dump.xsls
48
28acb1a609cb The "xslt" directory is now created on demand.
Ruslan Ermilov <ru@nginx.com>
parents: 47
diff changeset
170 mkdir -p $(dir $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
171 $(call XSLScript, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
172
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
173 images: \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
174 binary/books/nginx_http_server_jp.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
175 binary/books/nginx_1_web_server.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
176 binary/books/nginx_http_server.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
177 binary/books/nginx_in_practice.jpg
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
178
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
179 binary/books/nginx_http_server_jp.jpg: sources/1106030720.jpg
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
180 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
181 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
182
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
183 binary/books/nginx_1_web_server.jpg: \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
184 sources/Nginx\ 1\ Web\ Server\ Implementation\ Cookbook.jpg
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
185 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
186 $(call JPEGNORM, "$<", $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
187
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
188 binary/books/nginx_http_server.jpg: sources/0868OS_MockupCover.jpg
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
189 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
190 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
191
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
192 binary/books/nginx_in_practice.jpg: sources/20807089-1_o.jpg
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
193 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
194 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
195
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
196
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
197 .PHONY: gzip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
198 gzip: rsync_gzip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
199 $(MAKE) do_gzip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
200
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
201 rsync_gzip:
190
c52987a234e2 More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents: 182
diff changeset
202 $(CHMOD) $(OUT) $(TEXT)
136
8437e7f55c4d Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents: 124
diff changeset
203 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
204
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
205 do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \
60
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
206 $(addsuffix .gz, \
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
207 $(foreach lang, $(LANGS), \
283
eaaf65085bda Gzip <lang>/docs/faq/*.html.
Ruslan Ermilov <ru@nginx.com>
parents: 190
diff changeset
208 $(foreach dir, . docs docs/faq docs/http, \
60
092d8068f845 Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents: 55
diff changeset
209 $(wildcard $(ZIP)/$(lang)/$(dir)/*.html)))) \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
210 $(ZIP)/index.rss.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
211 $(ZIP)/LICENSE.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
212 $(ZIP)/en/CHANGES.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
213 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
214 $(ZIP)/ru/CHANGES.ru.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
215 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \
284
7e464158471f Gzip public PGP keys.
Ruslan Ermilov <ru@nginx.com>
parents: 283
diff changeset
216 $(addsuffix .gz, $(wildcard $(ZIP)/keys/*.key)) \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
217
136
8437e7f55c4d Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents: 124
diff changeset
218 find $(ZIP) -type f ! -name '*.gz' -exec test \! -e {}.gz \; -print
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
219
136
8437e7f55c4d Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents: 124
diff changeset
220 find $(ZIP) -type f -name '*.gz' | \
182
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
221 while read f ; do test -e "$${f%.gz}" || rm -fv "$$f" ; done
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
222
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
223 $(ZIP)/%.gz: $(ZIP)/%
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
224 rm -f $<.gz
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
225 gzip -9cn $< > $<.gz
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
226 touch -r $< $<.gz
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
227
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
228 draft: all
190
c52987a234e2 More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents: 182
diff changeset
229 $(CHMOD) $(OUT)
136
8437e7f55c4d Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents: 124
diff changeset
230 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
231
182
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
232 .PHONY: binary
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
233 binary:
190
c52987a234e2 More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents: 182
diff changeset
234 $(CHMOD) binary
182
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
235 $(RSYNC) binary/ $(NGINX_ORG)/
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
236
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
237 copy:
190
c52987a234e2 More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents: 182
diff changeset
238 $(CHMOD) $(ZIP) binary
136
8437e7f55c4d Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents: 124
diff changeset
239 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/
182
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
240 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \
d87e97c0a3e4 *) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents: 146
diff changeset
241 $(NGINX_ORG)/
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
242
596
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
243 dev: xslt/version.xslt sign
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
244 dev: NGINX:=$(shell xsltproc xslt/version.xslt xml/versions.xml)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
245
596
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
246 stable: xslt/version.xslt sign
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
247 stable: NGINX:=$(shell xsltproc --stringparam VERSION stable \
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
248 xslt/version.xslt xml/versions.xml)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
249
596
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
250 legacy: xslt/version.xslt sign
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
251 legacy: NGINX:=$(shell xsltproc --stringparam VERSION legacy_stable \
19c9bd574db0 Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents: 584
diff changeset
252 xslt/version.xslt xml/versions.xml)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
253
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
254 any: sign
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
255 any: NGINX=0.7.69
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
256
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
257
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
258 sign:
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
259 @echo sign nginx-$(NGINX)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
260
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
261 gpg -sab binary/download/nginx-$(NGINX).tar.gz
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
262 gpg -sab binary/download/nginx-$(NGINX).zip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
263
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
264
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
265 TEMP = temp
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
266 SITE = nginx.org
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
267
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
268 tarball:
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
269 rm -rf $(TEMP)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
270 mkdir -p $(TEMP)/$(SITE)
495
23c193ca8ebd Fixed the "tarball" target.
Ruslan Ermilov <ru@nginx.com>
parents: 434
diff changeset
271 cp -Rp BSDmakefile GNUmakefile umasked.sh \
23c193ca8ebd Fixed the "tarball" target.
Ruslan Ermilov <ru@nginx.com>
parents: 434
diff changeset
272 xml xsls xslt dtd binary sources text \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
273 $(TEMP)/$(SITE)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
274
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
275 rm -f $(SITE).tar.bz2
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
276 tar -c -y -f $(SITE).tar.bz2 \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
277 --directory $(TEMP) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
278 --exclude .svn \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
279 $(SITE)
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
280
432
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
281 dir.map: xslt/dirmap.xslt xml/en/docs/dirindex.xml
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
282 @xsltproc -o - xslt/dirmap.xslt xml/en/docs/dirindex.xml | \
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
283 sort -u -k1,1 | sed 's/^include /\\&/' > $@
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
284
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
285 ifeq ($(patsubst %.nginx.org,YES,$(shell hostname)), YES)
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
286 all: dir.map
434
644869149f36 Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents: 432
diff changeset
287 copy: copy_dirmap
644869149f36 Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents: 432
diff changeset
288 .PHONY: copy_dirmap
644869149f36 Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents: 432
diff changeset
289 copy_dirmap:
644869149f36 Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents: 432
diff changeset
290 /usr/local/bin/copy_dirmap.sh dir.map
432
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
291 endif
fbba1f292dc9 Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents: 428
diff changeset
292
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
293 .DELETE_ON_ERROR: