Mercurial > hg > nginx-site
annotate GNUmakefile @ 30:8ed43632a28c
Fixing dependencies of included XSLT files.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 Sep 2011 12:53:26 +0000 |
parents | 3cc1fbdc53e8 |
children | dc74e3a8f324 |
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 | 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 | 7 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\* |
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 | 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 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
36 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
37 ARTICLE_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
38 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
39 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
40 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
41 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
42 xslt/article.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
43 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
44 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
45 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
46 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
47 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
48 xslt/donate.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
49 xslt/directive.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
50 xslt/content.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
51 xslt/versions.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
52 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
53 NEWS_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
54 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
55 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
56 dtd/news.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
57 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
58 xslt/news.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
59 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
60 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
61 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
62 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
63 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
64 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
65 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
66 DOWNLOAD_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
67 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
68 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
69 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
70 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
71 xslt/download.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
72 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
73 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
74 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
75 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
76 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
77 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
78 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
79 SECURITY_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
80 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
81 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
82 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
83 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
84 xslt/security.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
85 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
86 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
87 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
88 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
89 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
90 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
91 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
92 BOOK_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
93 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
94 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
95 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
96 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
97 xslt/books.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
98 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
99 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
100 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
101 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
102 xslt/menu.xslt \ |
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 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 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
|
106 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 news: $(OUT)/index.html $(OUT)/index.rss |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 arx: $(OUT)/2010.html $(OUT)/2009.html |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
109 404: $(OUT)/404.html |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
110 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
111 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 include xml/en/GNUmakefile |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 include xml/ja/GNUmakefile |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 include xml/he/GNUmakefile |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 include xml/ru/GNUmakefile |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
116 include xml/tr/GNUmakefile |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
117 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
118 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
119 $(OUT)/index.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
120 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
121 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 $(call XSLT, xslt/news.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
124 $(OUT)/index.rss: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
125 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
126 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 xslt/rss.xslt \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 $(call XSLT, xslt/rss.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
131 $(OUT)/2010.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
132 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
133 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=2010) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 |
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)/2009.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
138 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
139 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=2009) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
142 $(OUT)/404.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
143 xml/404.xml \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 xml/menu.xml \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 dtd/article.dtd \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
146 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
147 xslt/error.xslt |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 $(call XSLT, xslt/error.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
149 |
27
1201fabeccf7
Added .SECONDARY to preserve intermediate files.
Maxim Dounin <mdounin@mdounin.ru>
parents:
22
diff
changeset
|
150 .SECONDARY: |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
152 $(OUT)/%.html: xml/%.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
153 $(ARTICLE_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 $(call XSLT, xslt/article.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
155 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
157 xslt/%.xslt: xsls/%.xsls \ |
6 | 158 xsls/dump.xsls |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 $(call XSLScript, $<, $@) |
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 images: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
162 binary/books/nginx_http_server_jp.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
163 binary/books/nginx_1_web_server.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
164 binary/books/nginx_http_server.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
165 binary/books/nginx_in_practice.jpg |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
166 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
167 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
|
168 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
169 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
171 binary/books/nginx_1_web_server.jpg: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 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
|
173 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
174 $(call JPEGNORM, "$<", $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 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
|
177 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
178 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
179 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
180 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
|
181 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
182 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
183 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
184 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
185 .PHONY: gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
186 gzip: rsync_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
187 $(MAKE) do_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
188 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
189 rsync_gzip: |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
190 $(RSYNC) $(OUT)/ $(ZIP)/ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
191 $(RSYNC) $(TEXT)/ $(ZIP)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
192 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
193 do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
194 $(addsuffix .gz, $(wildcard $(ZIP)/en/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
195 $(addsuffix .gz, $(wildcard $(ZIP)/en/docs/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
196 $(addsuffix .gz, $(wildcard $(ZIP)/en/docs/http/*.html))\ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
197 $(addsuffix .gz, $(wildcard $(ZIP)/ja/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
198 $(addsuffix .gz, $(wildcard $(ZIP)/ja/docs/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 $(addsuffix .gz, $(wildcard $(ZIP)/ja/docs/http/*.html))\ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
200 $(addsuffix .gz, $(wildcard $(ZIP)/he/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
201 $(addsuffix .gz, $(wildcard $(ZIP)/he/docs/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
202 $(addsuffix .gz, $(wildcard $(ZIP)/he/docs/http/*.html))\ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 $(addsuffix .gz, $(wildcard $(ZIP)/ru/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 $(addsuffix .gz, $(wildcard $(ZIP)/ru/docs/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
205 $(addsuffix .gz, $(wildcard $(ZIP)/tr/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
206 $(addsuffix .gz, $(wildcard $(ZIP)/tr/docs/*.html)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
207 $(addsuffix .gz, $(wildcard $(ZIP)/tr/docs/http/*.html))\ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
208 $(ZIP)/index.rss.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
209 $(ZIP)/LICENSE.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
210 $(ZIP)/en/CHANGES.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
211 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
212 $(ZIP)/ru/CHANGES.ru.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
213 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
214 |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
215 find $(ZIP)/ -type d -name .svn -prune \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
216 -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
|
217 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
218 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
219 $(ZIP)/%.gz: $(ZIP)/% |
6 | 220 rm -f $<.gz |
221 ifneq (, $(shell which 7za)) | |
222 7za a -tgzip -mx9 -mpass=15 -si -ba -bd $<.gz < $< | |
223 else | |
224 gzip -9cn $< > $<.gz | |
225 endif | |
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 dirs: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
229 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
|
230 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
231 draft: all |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
232 $(RSYNC) $(OUT)/ $(NGINX_ORG)/$(OUT)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
233 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 copy: |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
235 $(RSYNC) $(ZIP)/ $(NGINX_ORG)/ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
236 $(RSYNC) binary/ $(NGINX_ORG)/ |
0
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 dev: xslt/development.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
239 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
|
240 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
241 stable: xslt/stable.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
242 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
|
243 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
244 legacy: xslt/legacy_stable.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
245 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
|
246 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
247 any: sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
248 any: NGINX=0.7.69 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
249 |
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 sign: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 @echo sign nginx-$(NGINX) |
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 gpg -sab binary/download/nginx-$(NGINX).tar.gz |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
255 gpg -sab binary/download/nginx-$(NGINX).zip |
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 TEMP = temp |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
259 SITE = nginx.org |
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 tarball: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
262 rm -rf $(TEMP) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
263 mkdir -p $(TEMP)/$(SITE) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
264 cp -Rp BSDmakefile GNUmakefile TODO \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
265 xml xsls xslt dtd binary \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
266 $(TEMP)/$(SITE) |
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 rm -f $(SITE).tar.bz2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
269 tar -c -y -f $(SITE).tar.bz2 \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
270 --directory $(TEMP) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
271 --exclude .svn \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
272 $(SITE) |
8
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
273 |
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
274 .DELETE_ON_ERROR: |