Mercurial > hg > nginx-site
annotate GNUmakefile @ 1660:03715a31e037
Fixed make draft when using mirrors.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Fri, 26 Feb 2016 19:15:23 +0300 |
parents | ae713f8acaca |
children | b04c41175177 |
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 |
1084
be1d72ba7e5f
Switched from java XSLScript to xslscript.pl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1078
diff
changeset
|
8 XSLS ?= xslscript.pl |
895 | 9 RSYNC = rsync -v -rpc |
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 |
1084
be1d72ba7e5f
Switched from java XSLScript to xslscript.pl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1078
diff
changeset
|
14 $(XSLS) -o $(2) $(1) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 endef |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 define XSLT |
124 | 18 xmllint --noout --valid $2 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 xsltproc -o $3 \ |
1295
8743a07a0b39
Makefile: simplified shell code.
Ruslan Ermilov <ru@nginx.com>
parents:
1286
diff
changeset
|
20 $(shell ff="$(strip $2)"; f=$${ff#xml/*/}; \ |
706 | 21 if [ "$$f" != "$$ff" ]; then \ |
22 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ | |
23 t=; for l in $(LANGS); do \ | |
24 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ | |
25 echo --stringparam TRANS "\"$$t\""; \ | |
26 fi) \ | |
1296
7b60ab795af8
Makefile: avoided the use of shell code.
Ruslan Ermilov <ru@nginx.com>
parents:
1295
diff
changeset
|
27 $(if $4,--stringparam $4 $5) \ |
0
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 |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
39 COMMON_DEPS = \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
40 xml/menu.xml \ |
569
f9207a33992f
Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents:
558
diff
changeset
|
41 xml/i18n.xml \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
42 dtd/content.dtd \ |
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 \ |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
495
diff
changeset
|
48 xslt/ga.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
49 xslt/content.xslt \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
50 |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
51 ARTICLE_DEPS = \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
52 $(COMMON_DEPS) \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
53 xml/versions.xml \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
54 dtd/article.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
55 dtd/module.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
56 xslt/article.xslt \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
57 xslt/books.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
58 xslt/directive.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
59 xslt/donate.xslt \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
60 xslt/download.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
61 xslt/security.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
62 xslt/versions.xslt \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
63 |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
64 NEWS_DEPS = \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
65 $(COMMON_DEPS) \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
66 dtd/news.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
67 xslt/news.xslt \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
68 |
1333
21089e4b021b
Excluded alternative languages from building.
Maxim Konovalov <maxim@nginx.com>
parents:
1309
diff
changeset
|
69 LANGS = en ru |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
70 |
1635 | 71 YEARS = 2015 2014 2013 2012 2011 2010 2009 |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
72 |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
73 all: news arx 404 $(LANGS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 news: $(OUT)/index.html $(OUT)/index.rss |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
76 arx: $(foreach year,$(YEARS),$(OUT)/$(year).html) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 404: $(OUT)/404.html |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
80 DIRIND_DEPS = |
1156 | 81 VARIND_DEPS = |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
82 |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
83 define lang-specific |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
84 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
85 TOP= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
86 DOCS= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
87 REFS= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
88 FAQ= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
89 include xml/$(lang)/GNUmakefile |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
90 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
91 $(lang): \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
92 $$(foreach f,index $$(TOP),$(OUT)/$(lang)/$$(f).html) \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
93 $$(foreach f,index $$(DOCS) $$(REFS) $$(FAQ), \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
94 $(OUT)/$(lang)/docs/$$(f).html) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
96 $(OUT)/$(lang)/docs/index.html: \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
97 $$(foreach f,$$(DOCS) $$(REFS), \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
98 $(OUT)/$(lang)/docs/$$(f).html) |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
99 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
100 $(OUT)/$(lang)/docs/faq.html: \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
101 $$(foreach f,$$(FAQ),$(OUT)/$(lang)/docs/$$(f).html) |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
102 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
103 ifneq (,$$(filter dirindex,$$(DOCS))) |
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
104 DIRIND_DEPS += xml/$(lang)/docs/dirindex.xml |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
105 xml/$(lang)/docs/dirindex.xml: \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
106 $$(foreach f,$$(REFS),xml/$(lang)/docs/$$(f).xml) \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
107 xslt/dirindex.xslt |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
108 echo "<modules>$$(patsubst %, \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
109 <module name=\"%\"/>, $$(filter %.xml,$$^))</modules>" | \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
110 xsltproc -o - --stringparam LANG $(lang) \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
111 xslt/dirindex.xslt - | \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
112 sed 's;xml/[^/]*/docs/;;g' > $$@ |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
113 endif |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
114 |
1156 | 115 ifneq (,$$(filter varindex,$$(DOCS))) |
116 VARIND_DEPS += xml/$(lang)/docs/varindex.xml | |
117 xml/$(lang)/docs/varindex.xml: \ | |
118 $$(foreach f,$$(REFS),xml/$(lang)/docs/$$(f).xml) \ | |
119 xslt/varindex.xslt | |
120 echo "<modules>$$(patsubst %, \ | |
121 <module name=\"%\"/>, $$(filter %.xml,$$^))</modules>" | \ | |
122 xsltproc -o - --stringparam LANG $(lang) \ | |
123 xslt/varindex.xslt - | \ | |
124 sed 's;xml/[^/]*/docs/;;g' > $$@ | |
125 endif | |
126 | |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
127 endef |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
128 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
129 $(foreach lang, $(LANGS), $(eval $(call lang-specific))) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
131 $(foreach lang, $(LANGS), $(OUT)/$(lang)/docs/dirindex.html): $(DIRIND_DEPS) |
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
132 |
1156 | 133 $(foreach lang, $(LANGS), $(OUT)/$(lang)/docs/varindex.html): $(VARIND_DEPS) |
134 | |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
135 $(OUT)/index.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
136 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
137 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 $(call XSLT, xslt/news.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
140 $(OUT)/index.rss: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
141 xml/index.xml \ |
31 | 142 $(NEWS_DEPS) \ |
143 xslt/rss.xslt | |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 $(call XSLT, xslt/rss.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
147 $(foreach year,$(YEARS),$(OUT)/$(year).html): \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
148 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
149 $(NEWS_DEPS) |
1296
7b60ab795af8
Makefile: avoided the use of shell code.
Ruslan Ermilov <ru@nginx.com>
parents:
1295
diff
changeset
|
150 $(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
|
151 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
152 $(OUT)/404.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
153 xml/404.xml \ |
1309
59f7fb43e39c
Design: used generic layout for error pages.
Valentin Bartenev <vbart@nginx.com>
parents:
1296
diff
changeset
|
154 $(COMMON_DEPS) \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
155 dtd/error.dtd \ |
1309
59f7fb43e39c
Design: used generic layout for error pages.
Valentin Bartenev <vbart@nginx.com>
parents:
1296
diff
changeset
|
156 xslt/error.xslt |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 $(call XSLT, xslt/error.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 |
75
2bf4cd2787c5
Added DTDs to make xmllint happy.
Maxim Dounin <mdounin@mdounin.ru>
parents:
60
diff
changeset
|
159 $(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
|
160 $(ARTICLE_DEPS) |
8213f3f1c93d
Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents:
49
diff
changeset
|
161 $(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
|
162 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
163 |
428
fc2bd185dc02
Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents:
425
diff
changeset
|
164 # Prevent intermediate .xslt files from being removed. |
fc2bd185dc02
Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents:
425
diff
changeset
|
165 $(patsubst xsls/%.xsls,xslt/%.xslt,$(wildcard xsls/*.xsls)): |
fc2bd185dc02
Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents:
425
diff
changeset
|
166 |
1084
be1d72ba7e5f
Switched from java XSLScript to xslscript.pl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1078
diff
changeset
|
167 xslt/%.xslt: xsls/%.xsls |
48
28acb1a609cb
The "xslt" directory is now created on demand.
Ruslan Ermilov <ru@nginx.com>
parents:
47
diff
changeset
|
168 mkdir -p $(dir $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 $(call XSLScript, $<, $@) |
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 images: \ |
1658 | 172 binary/books/practical_nginx_guide_jp.jpg \ |
173 binary/books/nginx_pocket_reference_jp.jpg \ | |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 binary/books/nginx_http_server_jp.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 binary/books/nginx_1_web_server.jpg \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 binary/books/nginx_http_server.jpg \ |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
177 binary/books/nginx_in_practice.jpg \ |
963
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
178 binary/books/mastering_nginx.jpg \ |
1006
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
179 binary/books/nginx_http_server_2nd_ed.jpg \ |
1109
28c05aa07b5f
"Nginx Module Extension" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
1084
diff
changeset
|
180 binary/books/instant_nginx_starter.jpg \ |
1565
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
181 binary/books/nginx_module_extension.jpg \ |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
182 binary/books/nginx_high_performance.jpg \ |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
183 binary/books/nginx_essentials.jpg |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
184 |
1658 | 185 binary/books/practical_nginx_guide_jp.jpg: sources/9784774178660.jpg |
186 mkdir -p $(dir $@) | |
187 $(call JPEGNORM, $<, $@) | |
188 | |
189 binary/books/nginx_pocket_reference_jp.jpg: \ | |
190 sources/51JYTdy8jrL._SX335_BO1,204,203,200_.jpg | |
191 mkdir -p $(dir $@) | |
192 $(call JPEGNORM, $<, $@) | |
193 | |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
194 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
|
195 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
196 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
197 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
198 binary/books/nginx_1_web_server.jpg: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 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
|
200 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
201 $(call JPEGNORM, "$<", $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
202 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 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
|
204 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
205 $(call JPEGNORM, $<, $@) |
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 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
|
208 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
209 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
210 |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
211 binary/books/mastering_nginx.jpg: sources/7447os_mockupcover_normal.jpg |
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
212 mkdir -p $(dir $@) |
866
f20ac1953eb0
Better cover image for the "Mastering Nginx" book committed.
Maxim Konovalov <maxim@nginx.com>
parents:
863
diff
changeset
|
213 $(call JPEGNORM, $<, $@) |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
214 |
963
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
215 binary/books/nginx_http_server_2nd_ed.jpg: sources/2322OS_cov.jpg |
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
216 mkdir -p $(dir $@) |
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
217 $(call JPEGNORM, $<, $@) |
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
218 |
1006
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
219 binary/books/instant_nginx_starter.jpg: sources/5125OS_cov.jpg |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
220 mkdir -p $(dir $@) |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
221 $(call JPEGNORM, $<, $@) |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
222 |
1109
28c05aa07b5f
"Nginx Module Extension" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
1084
diff
changeset
|
223 binary/books/nginx_module_extension.jpg: sources/3046OS_cover.jpg |
28c05aa07b5f
"Nginx Module Extension" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
1084
diff
changeset
|
224 mkdir -p $(dir $@) |
28c05aa07b5f
"Nginx Module Extension" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
1084
diff
changeset
|
225 $(call JPEGNORM, $<, $@) |
28c05aa07b5f
"Nginx Module Extension" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
1084
diff
changeset
|
226 |
1565
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
227 binary/books/nginx_high_performance.jpg: sources/1839OS.jpg |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
228 mkdir -p $(dir $@) |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
229 $(call JPEGNORM, $<, $@) |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
230 |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
231 binary/books/nginx_essentials.jpg: sources/B04282_MockupCover_Normal.jpg |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
232 mkdir -p $(dir $@) |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
233 $(call JPEGNORM, $<, $@) |
300349b7aef3
Added new books about nginx.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1389
diff
changeset
|
234 |
0
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 .PHONY: gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
237 gzip: rsync_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
238 $(MAKE) do_gzip |
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 rsync_gzip: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
241 $(CHMOD) $(OUT) $(TEXT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
242 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ |
0
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 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
|
245 $(addsuffix .gz, \ |
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
246 $(foreach lang, $(LANGS), \ |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1333
diff
changeset
|
247 $(foreach dir, . docs docs/faq docs/http docs/mail docs/stream, \ |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
248 $(wildcard $(ZIP)/$(lang)/$(dir)/*.html)))) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
249 $(ZIP)/index.rss.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
250 $(ZIP)/LICENSE.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
251 $(ZIP)/en/CHANGES.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
253 $(ZIP)/ru/CHANGES.ru.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
254 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \ |
284 | 255 $(addsuffix .gz, $(wildcard $(ZIP)/keys/*.key)) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
256 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
257 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
|
258 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
259 find $(ZIP) -type f -name '*.gz' | \ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
260 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
|
261 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
262 $(ZIP)/%.gz: $(ZIP)/% |
6 | 263 rm -f $<.gz |
264 gzip -9cn $< > $<.gz | |
265 touch -r $< $<.gz | |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
266 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
267 draft: all |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
268 $(CHMOD) $(OUT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
269 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
270 |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
271 .PHONY: binary |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
272 binary: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
273 $(CHMOD) binary |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
274 $(RSYNC) binary/ $(NGINX_ORG)/ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
275 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
276 copy: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
277 $(CHMOD) $(ZIP) binary |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
278 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
279 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
280 $(NGINX_ORG)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
281 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
282 dev: xslt/version.xslt sign |
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
283 dev: NGINX:=$(shell xsltproc xslt/version.xslt xml/versions.xml) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
284 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
285 stable: xslt/version.xslt sign |
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
286 stable: NGINX:=$(shell xsltproc --stringparam VERSION stable \ |
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
287 xslt/version.xslt xml/versions.xml) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
288 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
289 legacy: xslt/version.xslt sign |
727
b2b10d564893
Simplified nginx versions maintenance by providing only
Ruslan Ermilov <ru@nginx.com>
parents:
721
diff
changeset
|
290 legacy: NGINX:=$(shell xsltproc --stringparam VERSION legacy \ |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
291 xslt/version.xslt xml/versions.xml) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
292 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
293 any: sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
294 any: NGINX=0.7.69 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
295 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
296 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
297 sign: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
298 @echo sign nginx-$(NGINX) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
299 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
300 gpg -sab binary/download/nginx-$(NGINX).tar.gz |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
301 gpg -sab binary/download/nginx-$(NGINX).zip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
302 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
303 |
1159
166fd33afad1
Extended dir.map with links to variables.
Ruslan Ermilov <ru@nginx.com>
parents:
1156
diff
changeset
|
304 dir.map: xslt/dirmap.xslt xml/en/docs/dirindex.xml \ |
166fd33afad1
Extended dir.map with links to variables.
Ruslan Ermilov <ru@nginx.com>
parents:
1156
diff
changeset
|
305 xml/en/docs/varindex.xml |
166fd33afad1
Extended dir.map with links to variables.
Ruslan Ermilov <ru@nginx.com>
parents:
1156
diff
changeset
|
306 @xsltproc -o - xslt/dirmap.xslt xml/en/docs/dirindex.xml \ |
1200
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1197
diff
changeset
|
307 xml/en/docs/varindex.xml > $@ |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
308 |
1286
c102344a0fa0
Fixed dir.map generation on ns.nginx.com.
Sergey Budnevitch <sb@waeme.net>
parents:
1200
diff
changeset
|
309 ifeq ($(patsubst %.nginx.com,YES,$(shell hostname)), YES) |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
310 all: dir.map |
434
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
311 copy: copy_dirmap |
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
312 .PHONY: copy_dirmap |
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
313 copy_dirmap: |
1605
40f079598467
Makefile: Pass target to dir.map copying script.
Konstantin Pavlov <thresh@nginx.com>
parents:
1565
diff
changeset
|
314 /usr/local/bin/copy_dirmap.sh dir.map $(NGINX_ORG) |
1660
03715a31e037
Fixed make draft when using mirrors.
Konstantin Pavlov <thresh@nginx.com>
parents:
1658
diff
changeset
|
315 |
03715a31e037
Fixed make draft when using mirrors.
Konstantin Pavlov <thresh@nginx.com>
parents:
1658
diff
changeset
|
316 draft: copy_draft |
03715a31e037
Fixed make draft when using mirrors.
Konstantin Pavlov <thresh@nginx.com>
parents:
1658
diff
changeset
|
317 .PHONY: copy_draft |
03715a31e037
Fixed make draft when using mirrors.
Konstantin Pavlov <thresh@nginx.com>
parents:
1658
diff
changeset
|
318 copy_draft: |
03715a31e037
Fixed make draft when using mirrors.
Konstantin Pavlov <thresh@nginx.com>
parents:
1658
diff
changeset
|
319 /usr/local/bin/copy_draft.sh $(NGINX_ORG) |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
320 endif |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
321 |
737 | 322 clean: |
1156 | 323 rm -rf $(ZIP) $(OUT) xml/*/docs/dirindex.xml dir.map \ |
324 xml/*/docs/varindex.xml | |
737 | 325 |
8
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
326 .DELETE_ON_ERROR: |