annotate GNUmakefile @ 28:02fc5e96a305

Moving decision logic from Makefile to XSLT because there is no simple way to force Gmake to use the $(OUT)/%_module.html target instead of $(OUT)/%.html target.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 29 Sep 2011 14:14:55 +0000
parents 1201fabeccf7
children 3cc1fbdc53e8
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
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
7 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\*
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
8 RSYNC = rsync -v -rc --exclude=.svn
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 define XSLScript
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
12 java -cp $(CP) \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 com.pault.StyleSheet \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14 -x com.pault.XX -y com.pault.XX \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 $(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
16 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18 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
19 endef
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 define XSLT
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 xsltproc -o $3 \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 $(shell echo $4 \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 $1 $2
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 endef
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
29 define JPEGNORM
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
30 jpegtopnm $1 \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
31 | pamscale -width=150 \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
32 | pnmtojpeg -quality=95 -optimize -dct=float \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
33 > $2
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
34 endef
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 all: news arx 404 en ja he ru tr
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38 news: $(OUT)/index.html $(OUT)/index.rss
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39 arx: $(OUT)/2010.html $(OUT)/2009.html
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40 404: $(OUT)/404.html
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
42
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43 ARTICLE_XSLT = xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 xml/versions.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 xslt/article.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46 dtd/article.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47 dtd/content.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 include xml/en/GNUmakefile
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50 include xml/ja/GNUmakefile
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51 include xml/he/GNUmakefile
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 include xml/ru/GNUmakefile
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53 include xml/tr/GNUmakefile
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
56 $(OUT)/index.html: xml/index.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 xslt/news.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59 dtd/news.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60 dtd/content.dtd
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 $(call XSLT, xslt/news.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 $(OUT)/index.rss: xml/index.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64 xslt/rss.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 dtd/article.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66 dtd/content.dtd
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67 $(call XSLT, xslt/rss.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 $(OUT)/2010.html: xml/index.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
71 xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
72 xslt/news.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
73 dtd/news.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
74 dtd/content.dtd
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=2010)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
76
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
77
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 $(OUT)/2009.html: xml/index.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
79 xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
80 xslt/news.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
81 dtd/news.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
82 dtd/content.dtd
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
83 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=2009)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
84
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
85 $(OUT)/404.html: xml/404.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
86 xml/menu.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
87 xslt/error.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
88 dtd/article.dtd \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
89 dtd/content.dtd
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
90 $(call XSLT, xslt/error.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
91
27
1201fabeccf7 Added .SECONDARY to preserve intermediate files.
Maxim Dounin <mdounin@mdounin.ru>
parents: 22
diff changeset
92 .SECONDARY:
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
93
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
94 $(OUT)/%.html: xml/%.xml \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
95 $(ARTICLE_XSLT)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
96 $(call XSLT, xslt/article.xslt, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
97
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
98
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
99 xslt/news.xslt: xsls/news.xsls \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
100 xslt/dirname.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
101 xslt/link.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
102 xslt/style.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
103 xslt/body.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
104 xslt/menu.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
105 xslt/content.xslt
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
106
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
107 xslt/article.xslt: xsls/article.xsls \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
108 xslt/dirname.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
109 xslt/link.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
110 xslt/style.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
111 xslt/body.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
112 xslt/menu.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
113 xslt/donate.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
114 xslt/content.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
115 xslt/versions.xslt
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
116
22
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
117 xslt/module.xslt: xsls/module.xsls \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
118 xslt/dirname.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
119 xslt/link.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
120 xslt/style.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
121 xslt/body.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
122 xslt/menu.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
123 xslt/donate.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
124 xslt/content.xslt \
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
125 xslt/versions.xslt
9d3403f5204d nginx-1.1.3, ngx_http_mp4_module
Igor Sysoev <igor@sysoev.ru>
parents: 8
diff changeset
126
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
127 xslt/download.xslt: xsls/download.xsls \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
128 xslt/dirname.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
129 xslt/link.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
130 xslt/style.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
131 xslt/body.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
132 xslt/menu.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
133 xslt/content.xslt
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
134
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
135 xslt/security.xslt: xsls/security.xsls \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
136 xslt/dirname.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
137 xslt/link.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
138 xslt/style.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
139 xslt/body.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
140 xslt/menu.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
141 xslt/content.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 xslt/books.xslt: xsls/books.xsls \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
144 xslt/dirname.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
145 xslt/link.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
146 xslt/style.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
147 xslt/body.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
148 xslt/menu.xslt \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
149 xslt/content.xslt
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
150
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
151 xslt/%.xslt: xsls/%.xsls \
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
152 xsls/dump.xsls
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
153 $(call XSLScript, $<, $@)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
154
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
155 images: \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
156 binary/books/nginx_http_server_jp.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
157 binary/books/nginx_1_web_server.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
158 binary/books/nginx_http_server.jpg \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
159 binary/books/nginx_in_practice.jpg
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
160
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
161 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
162 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
163 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
164
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
165 binary/books/nginx_1_web_server.jpg: \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
166 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
167 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
168 $(call JPEGNORM, "$<", $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
169
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
170 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
171 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
172 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
173
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
174 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
175 mkdir -p $(dir $@)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
176 $(call JPEGNORM, $<, $@)
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
177
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 .PHONY: gzip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
180 gzip: rsync_gzip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
181 $(MAKE) do_gzip
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 rsync_gzip:
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
184 $(RSYNC) $(OUT)/ $(ZIP)/
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
185 $(RSYNC) $(TEXT)/ $(ZIP)/
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
186
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
187 do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
188 $(addsuffix .gz, $(wildcard $(ZIP)/en/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
189 $(addsuffix .gz, $(wildcard $(ZIP)/en/docs/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
190 $(addsuffix .gz, $(wildcard $(ZIP)/en/docs/http/*.html))\
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
191 $(addsuffix .gz, $(wildcard $(ZIP)/ja/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
192 $(addsuffix .gz, $(wildcard $(ZIP)/ja/docs/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
193 $(addsuffix .gz, $(wildcard $(ZIP)/ja/docs/http/*.html))\
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
194 $(addsuffix .gz, $(wildcard $(ZIP)/he/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
195 $(addsuffix .gz, $(wildcard $(ZIP)/he/docs/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
196 $(addsuffix .gz, $(wildcard $(ZIP)/he/docs/http/*.html))\
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
197 $(addsuffix .gz, $(wildcard $(ZIP)/ru/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
198 $(addsuffix .gz, $(wildcard $(ZIP)/ru/docs/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
199 $(addsuffix .gz, $(wildcard $(ZIP)/tr/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
200 $(addsuffix .gz, $(wildcard $(ZIP)/tr/docs/*.html)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
201 $(addsuffix .gz, $(wildcard $(ZIP)/tr/docs/http/*.html))\
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
202 $(ZIP)/index.rss.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
203 $(ZIP)/LICENSE.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
204 $(ZIP)/en/CHANGES.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
205 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
206 $(ZIP)/ru/CHANGES.ru.gz \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
207 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
208
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
209 find $(ZIP)/ -type d -name .svn -prune \
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
210 -o -type f -not -name '*.gz' -exec test \! -e {}.gz \; -print
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
211
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
212
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
213 $(ZIP)/%.gz: $(ZIP)/%
6
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
214 rm -f $<.gz
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
215 ifneq (, $(shell which 7za))
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
216 7za a -tgzip -mx9 -mpass=15 -si -ba -bd $<.gz < $<
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
217 else
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
218 gzip -9cn $< > $<.gz
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
219 endif
8e9bd20faa47 - Hide some internal paths.
Ruslan Ermilov <ru@nginx.com>
parents: 2
diff changeset
220 touch -r $< $<.gz
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
221
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
222 dirs:
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
223 test -d $(OUT)/en/docs/http || mkdir -p $(OUT)/en/docs/http
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
224
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
225 draft: all
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
226 $(RSYNC) $(OUT)/ $(NGINX_ORG)/$(OUT)/
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 copy:
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
229 $(RSYNC) $(ZIP)/ $(NGINX_ORG)/
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
230 $(RSYNC) binary/ $(NGINX_ORG)/
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
231
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
232 dev: xslt/development.xslt sign
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
233 dev: NGINX=$(shell xsltproc xslt/development.xslt xml/versions.xml)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
234
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
235 stable: xslt/stable.xslt sign
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
236 stable: NGINX=$(shell xsltproc xslt/stable.xslt xml/versions.xml)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
237
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
238 legacy: xslt/legacy_stable.xslt sign
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
239 legacy: NGINX=$(shell xsltproc xslt/legacy_stable.xslt xml/versions.xml)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
240
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
241 any: sign
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
242 any: NGINX=0.7.69
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
243
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
244
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
245 sign:
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
246 @echo sign nginx-$(NGINX)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
247
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
248 gpg -sab binary/download/nginx-$(NGINX).tar.gz
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
249 gpg -sab binary/download/nginx-$(NGINX).zip
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
250
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
251
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
252 TEMP = temp
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
253 SITE = nginx.org
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
254
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
255 tarball:
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
256 rm -rf $(TEMP)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
257 mkdir -p $(TEMP)/$(SITE)
1
b633fc3525eb - Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
258 cp -Rp BSDmakefile GNUmakefile TODO \
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
259 xml xsls xslt dtd binary \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
260 $(TEMP)/$(SITE)
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
261
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
262 rm -f $(SITE).tar.bz2
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
263 tar -c -y -f $(SITE).tar.bz2 \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
264 --directory $(TEMP) \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
265 --exclude .svn \
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
266 $(SITE)
8
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
267
39768562fc89 - Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents: 6
diff changeset
268 .DELETE_ON_ERROR: