Mercurial > hg > nginx-site
annotate GNUmakefile @ 425:c0fef00f71fb
Removed .SECONDARY: that made all targets to be considered intermediate.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 24 Feb 2012 16:22:08 +0000 |
parents | dff45e92da4b |
children | fc2bd185dc02 |
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 |
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 | 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 | 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 | 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 \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 $(shell echo $4 \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 $1 $2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 endef |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
31 define JPEGNORM |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
32 jpegtopnm $1 \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
33 | pamscale -width=150 \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
34 | pnmtojpeg -quality=95 -optimize -dct=float \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
35 > $2 |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
36 endef |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
38 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
39 ARTICLE_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
40 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
41 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
42 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
43 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
44 xslt/article.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
45 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
46 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
47 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
48 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
49 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
50 xslt/donate.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
51 xslt/directive.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
52 xslt/content.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
53 xslt/versions.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
54 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
55 NEWS_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
56 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
57 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
58 dtd/news.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
59 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
60 xslt/news.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
61 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
62 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
63 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
64 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
65 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
66 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
67 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
68 DOWNLOAD_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
69 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
70 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
71 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
72 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
73 xslt/download.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
74 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
75 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
76 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
77 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
78 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
79 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
80 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
81 SECURITY_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
82 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
83 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
84 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
85 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
86 xslt/security.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
87 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
88 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
89 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
90 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
91 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
92 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
93 |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
94 BOOK_DEPS = \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
95 xml/menu.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
96 xml/versions.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
97 dtd/article.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
98 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
99 xslt/books.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
100 xslt/dirname.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
101 xslt/link.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
102 xslt/style.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
103 xslt/body.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
104 xslt/menu.xslt \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
105 xslt/content.xslt |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
106 |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
107 LANGS = en ja he ru tr |
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
108 |
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
109 all: news arx 404 $(LANGS) |
0
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 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
|
112 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
|
113 404: $(OUT)/404.html |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
116 include $(foreach lang, $(LANGS), xml/$(lang)/GNUmakefile) |
0
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 \ |
31 | 126 $(NEWS_DEPS) \ |
127 xslt/rss.xslt | |
0
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 |
307
dff45e92da4b
Generate 2011.html but don't link it to the menu yet.
Ruslan Ermilov <ru@nginx.com>
parents:
284
diff
changeset
|
131 $(OUT)/2011.html \ |
47
0b218409e2e7
Merged targets for creating past years news.
Ruslan Ermilov <ru@nginx.com>
parents:
40
diff
changeset
|
132 $(OUT)/2010.html \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
133 $(OUT)/2009.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
134 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
135 $(NEWS_DEPS) |
47
0b218409e2e7
Merged targets for creating past years news.
Ruslan Ermilov <ru@nginx.com>
parents:
40
diff
changeset
|
136 $(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
|
137 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
138 $(OUT)/404.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
139 xml/404.xml \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 xml/menu.xml \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 dtd/article.dtd \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
142 dtd/content.dtd \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
143 xslt/error.xslt |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 $(call XSLT, xslt/error.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 |
75
2bf4cd2787c5
Added DTDs to make xmllint happy.
Maxim Dounin <mdounin@mdounin.ru>
parents:
60
diff
changeset
|
146 $(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
|
147 $(ARTICLE_DEPS) |
8213f3f1c93d
Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents:
49
diff
changeset
|
148 $(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
|
149 |
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 xslt/%.xslt: xsls/%.xsls \ |
6 | 152 xsls/dump.xsls |
48
28acb1a609cb
The "xslt" directory is now created on demand.
Ruslan Ermilov <ru@nginx.com>
parents:
47
diff
changeset
|
153 mkdir -p $(dir $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 $(call XSLScript, $<, $@) |
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 images: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 binary/books/nginx_http_server_jp.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 binary/books/nginx_1_web_server.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 binary/books/nginx_http_server.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
160 binary/books/nginx_in_practice.jpg |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
161 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
162 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
|
163 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
164 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
165 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
166 binary/books/nginx_1_web_server.jpg: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
167 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
|
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_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
|
172 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
173 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 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
|
176 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
177 $(call JPEGNORM, $<, $@) |
0
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 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
180 .PHONY: gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
181 gzip: rsync_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
182 $(MAKE) do_gzip |
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 rsync_gzip: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
185 $(CHMOD) $(OUT) $(TEXT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
186 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ |
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 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
|
189 $(addsuffix .gz, \ |
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
190 $(foreach lang, $(LANGS), \ |
283 | 191 $(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
|
192 $(wildcard $(ZIP)/$(lang)/$(dir)/*.html)))) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
193 $(ZIP)/index.rss.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
194 $(ZIP)/LICENSE.gz \ |
94
3179774f938e
Synchronized English and Russian introduction, added license in Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
75
diff
changeset
|
195 $(ZIP)/LICENSE.ru.gz \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
196 $(ZIP)/en/CHANGES.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
197 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
198 $(ZIP)/ru/CHANGES.ru.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \ |
284 | 200 $(addsuffix .gz, $(wildcard $(ZIP)/keys/*.key)) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
201 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
202 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
|
203 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
204 find $(ZIP) -type f -name '*.gz' | \ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
205 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
|
206 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
207 $(ZIP)/%.gz: $(ZIP)/% |
6 | 208 rm -f $<.gz |
209 gzip -9cn $< > $<.gz | |
210 touch -r $< $<.gz | |
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 draft: all |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
213 $(CHMOD) $(OUT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
214 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
215 |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
216 .PHONY: binary |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
217 binary: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
218 $(CHMOD) binary |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
219 $(RSYNC) binary/ $(NGINX_ORG)/ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
220 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
221 copy: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
222 $(CHMOD) $(ZIP) binary |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
223 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
224 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
225 $(NGINX_ORG)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
226 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
227 dev: xslt/development.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
228 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
|
229 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
230 stable: xslt/stable.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
231 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
|
232 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
233 legacy: xslt/legacy_stable.xslt sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 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
|
235 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
236 any: sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
237 any: NGINX=0.7.69 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
238 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
239 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
240 sign: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
241 @echo sign nginx-$(NGINX) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
242 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
243 gpg -sab binary/download/nginx-$(NGINX).tar.gz |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
244 gpg -sab binary/download/nginx-$(NGINX).zip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
245 |
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 TEMP = temp |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
248 SITE = nginx.org |
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 tarball: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
251 rm -rf $(TEMP) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 mkdir -p $(TEMP)/$(SITE) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
253 cp -Rp BSDmakefile GNUmakefile TODO \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
254 xml xsls xslt dtd binary \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
255 $(TEMP)/$(SITE) |
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 rm -f $(SITE).tar.bz2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
258 tar -c -y -f $(SITE).tar.bz2 \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
259 --directory $(TEMP) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
260 --exclude .svn \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
261 $(SITE) |
8
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
262 |
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
263 .DELETE_ON_ERROR: |