Mercurial > hg > nginx-site
annotate GNUmakefile @ 1084:be1d72ba7e5f
Switched from java XSLScript to xslscript.pl.
Latter is available from http://hg.nginx.org/xslscript.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 21 Feb 2014 20:15:37 +0400 |
parents | 271abf3db57b |
children | 28c05aa07b5f |
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 \ |
706 | 20 $(shell ff=`echo $2`; ff=$${ff#xml/}; \ |
21 f=$${ff#*/}; \ | |
22 if [ "$$f" != "$$ff" ]; then \ | |
23 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ | |
24 t=; for l in $(LANGS); do \ | |
25 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ | |
26 echo --stringparam TRANS "\"$$t\""; \ | |
27 fi) \ | |
604
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
603
diff
changeset
|
28 $(shell p="$4"; [ -n "$$p" ] && \ |
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
603
diff
changeset
|
29 echo --stringparam $${p%%=*} $${p#*=}) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 $1 $2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 endef |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
33 define JPEGNORM |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
34 jpegtopnm $1 \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
35 | pamscale -width=150 \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
36 | pnmtojpeg -quality=95 -optimize -dct=float \ |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
37 > $2 |
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
38 endef |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
40 |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
41 COMMON_DEPS = \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
42 xml/menu.xml \ |
569
f9207a33992f
Added missing dependency on i18n.xml.
Ruslan Ermilov <ru@nginx.com>
parents:
558
diff
changeset
|
43 xml/i18n.xml \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
44 dtd/content.dtd \ |
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 \ |
543
9085f0c59dc6
Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents:
495
diff
changeset
|
50 xslt/ga.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
51 xslt/content.xslt \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
52 |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
53 ARTICLE_DEPS = \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
54 $(COMMON_DEPS) \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
55 xml/versions.xml \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
56 dtd/article.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
57 dtd/module.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
58 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
|
59 xslt/books.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
60 xslt/directive.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
61 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
|
62 xslt/download.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
63 xslt/security.xslt \ |
603
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
64 xslt/versions.xslt \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
65 |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
66 NEWS_DEPS = \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
67 $(COMMON_DEPS) \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
68 dtd/news.dtd \ |
e0544f2c4a70
Simplified maintenance of dependencies.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
69 xslt/news.xslt \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
70 |
1018
19129672444e
Added italian translation.
Vladimir Homutov <vl@nginx.com>
parents:
1006
diff
changeset
|
71 LANGS = en ru cn he ja tr it |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
72 |
1078
271abf3db57b
Generate news for year 2013.
Konstantin Pavlov <thresh@nginx.com>
parents:
1018
diff
changeset
|
73 YEARS = 2013 2012 2011 2010 2009 |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
74 |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
75 all: news arx 404 $(LANGS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 news: $(OUT)/index.html $(OUT)/index.rss |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
78 arx: $(foreach year,$(YEARS),$(OUT)/$(year).html) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 404: $(OUT)/404.html |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
80 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
81 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
82 DIRIND_DEPS = |
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
83 |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
84 define lang-specific |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
85 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
86 TOP= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
87 DOCS= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
88 REFS= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
89 FAQ= |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
90 include xml/$(lang)/GNUmakefile |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
91 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
92 $(lang): \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
93 $$(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
|
94 $$(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
|
95 $(OUT)/$(lang)/docs/$$(f).html) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
97 $(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
|
98 $$(foreach f,$$(DOCS) $$(REFS), \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
99 $(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
|
100 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
101 $(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
|
102 $$(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
|
103 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
104 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
|
105 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
|
106 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
|
107 $$(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
|
108 xslt/dirindex.xslt |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
109 echo "<modules>$$(patsubst %, \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
110 <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
|
111 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
|
112 xslt/dirindex.xslt - | \ |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
113 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
|
114 endif |
734
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
115 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
116 endef |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
117 |
99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
Ruslan Ermilov <ru@nginx.com>
parents:
730
diff
changeset
|
118 $(foreach lang, $(LANGS), $(eval $(call lang-specific))) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
119 |
736
9f2953d854fd
Fixed language switcher in dirindex.html files by making them depend
Ruslan Ermilov <ru@nginx.com>
parents:
734
diff
changeset
|
120 $(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
|
121 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
122 $(OUT)/index.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
123 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
124 $(NEWS_DEPS) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 $(call XSLT, xslt/news.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
127 $(OUT)/index.rss: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
128 xml/index.xml \ |
31 | 129 $(NEWS_DEPS) \ |
130 xslt/rss.xslt | |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 $(call XSLT, xslt/rss.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 |
800
015981070efd
Simplified the new year maintenance.
Ruslan Ermilov <ru@nginx.com>
parents:
743
diff
changeset
|
134 $(foreach year,$(YEARS),$(OUT)/$(year).html): \ |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
135 xml/index.xml \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
136 $(NEWS_DEPS) |
47
0b218409e2e7
Merged targets for creating past years news.
Ruslan Ermilov <ru@nginx.com>
parents:
40
diff
changeset
|
137 $(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
|
138 |
30
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
139 $(OUT)/404.html: \ |
8ed43632a28c
Fixing dependencies of included XSLT files.
Igor Sysoev <igor@sysoev.ru>
parents:
29
diff
changeset
|
140 xml/404.xml \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 xml/menu.xml \ |
721
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
142 dtd/error.dtd \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
143 xslt/error.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
144 xslt/dirname.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
145 xslt/menu.xslt \ |
81ad082bc837
Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents:
706
diff
changeset
|
146 xslt/ga.xslt |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 $(call XSLT, xslt/error.xslt, $<, $@) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 |
75
2bf4cd2787c5
Added DTDs to make xmllint happy.
Maxim Dounin <mdounin@mdounin.ru>
parents:
60
diff
changeset
|
149 $(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
|
150 $(ARTICLE_DEPS) |
8213f3f1c93d
Updated DTD for modules and made modules documentation to be
Ruslan Ermilov <ru@nginx.com>
parents:
49
diff
changeset
|
151 $(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
|
152 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
153 |
428
fc2bd185dc02
Listed .xslt files explicitly as targets so they never get considered
Ruslan Ermilov <ru@nginx.com>
parents:
425
diff
changeset
|
154 # 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
|
155 $(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
|
156 |
1084
be1d72ba7e5f
Switched from java XSLScript to xslscript.pl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1078
diff
changeset
|
157 xslt/%.xslt: xsls/%.xsls |
48
28acb1a609cb
The "xslt" directory is now created on demand.
Ruslan Ermilov <ru@nginx.com>
parents:
47
diff
changeset
|
158 mkdir -p $(dir $@) |
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 \ |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
165 binary/books/nginx_in_practice.jpg \ |
963
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
166 binary/books/mastering_nginx.jpg \ |
1006
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
167 binary/books/nginx_http_server_2nd_ed.jpg \ |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
168 binary/books/instant_nginx_starter.jpg |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 binary/books/nginx_http_server_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
|
171 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
172 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 binary/books/nginx_1_web_server.jpg: \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 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
|
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 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
|
180 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
181 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
182 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
183 binary/books/nginx_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
|
184 mkdir -p $(dir $@) |
1
b633fc3525eb
- Cleaned up GNUmakefile somewhat.
Ruslan Ermilov <ru@nginx.com>
parents:
0
diff
changeset
|
185 $(call JPEGNORM, $<, $@) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
186 |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
187 binary/books/mastering_nginx.jpg: sources/7447os_mockupcover_normal.jpg |
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
188 mkdir -p $(dir $@) |
866
f20ac1953eb0
Better cover image for the "Mastering Nginx" book committed.
Maxim Konovalov <maxim@nginx.com>
parents:
863
diff
changeset
|
189 $(call JPEGNORM, $<, $@) |
863
2dd85d82e4d5
"Mastering Nginx" book added.
Maxim Konovalov <maxim@nginx.com>
parents:
805
diff
changeset
|
190 |
963
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
191 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
|
192 mkdir -p $(dir $@) |
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
193 $(call JPEGNORM, $<, $@) |
2116a99dc304
"Nginx HTTP Server - Second Edition" book added.
Valentin Bartenev <vbart@nginx.com>
parents:
895
diff
changeset
|
194 |
1006
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
195 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
|
196 mkdir -p $(dir $@) |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
197 $(call JPEGNORM, $<, $@) |
570598ae1fd6
"Instant Nginx starter" book added.
Vladimir Homutov <vl@nginx.com>
parents:
963
diff
changeset
|
198 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
200 .PHONY: gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
201 gzip: rsync_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
202 $(MAKE) do_gzip |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 rsync_gzip: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
205 $(CHMOD) $(OUT) $(TEXT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
206 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
207 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
208 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
|
209 $(addsuffix .gz, \ |
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
210 $(foreach lang, $(LANGS), \ |
730
76e876c58dc0
Added glue to generate compressed mail docs.
Ruslan Ermilov <ru@nginx.com>
parents:
727
diff
changeset
|
211 $(foreach dir, . docs docs/faq docs/http docs/mail, \ |
60
092d8068f845
Reduced number of lines by using the foreach function.
Ruslan Ermilov <ru@nginx.com>
parents:
55
diff
changeset
|
212 $(wildcard $(ZIP)/$(lang)/$(dir)/*.html)))) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
213 $(ZIP)/index.rss.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
214 $(ZIP)/LICENSE.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
215 $(ZIP)/en/CHANGES.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
216 $(addsuffix .gz, $(wildcard $(ZIP)/en/CHANGES-?.?)) \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
217 $(ZIP)/ru/CHANGES.ru.gz \ |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
218 $(addsuffix .gz, $(wildcard $(ZIP)/ru/CHANGES.ru-?.?)) \ |
284 | 219 $(addsuffix .gz, $(wildcard $(ZIP)/keys/*.key)) \ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
220 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
221 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
|
222 |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
223 find $(ZIP) -type f -name '*.gz' | \ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
224 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
|
225 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
226 $(ZIP)/%.gz: $(ZIP)/% |
6 | 227 rm -f $<.gz |
228 gzip -9cn $< > $<.gz | |
229 touch -r $< $<.gz | |
0
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 |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
232 $(CHMOD) $(OUT) |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
233 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
235 .PHONY: binary |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
236 binary: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
237 $(CHMOD) binary |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
238 $(RSYNC) binary/ $(NGINX_ORG)/ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
239 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
240 copy: |
190
c52987a234e2
More tweaks to support operating under non-root.
Ruslan Ermilov <ru@nginx.com>
parents:
182
diff
changeset
|
241 $(CHMOD) $(ZIP) binary |
136
8437e7f55c4d
Steps towards keeping site clean from deleted stuff.
Ruslan Ermilov <ru@nginx.com>
parents:
124
diff
changeset
|
242 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/ |
182
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
243 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \ |
d87e97c0a3e4
*) binary target to rsync binaries;
Igor Sysoev <igor@sysoev.ru>
parents:
146
diff
changeset
|
244 $(NGINX_ORG)/ |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
245 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
246 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
|
247 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
|
248 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
249 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
|
250 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
|
251 xslt/version.xslt xml/versions.xml) |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 |
596
19c9bd574db0
Replaced development.xslt, stable.xslt and legacy_stable.xslt with
Ruslan Ermilov <ru@nginx.com>
parents:
584
diff
changeset
|
253 legacy: xslt/version.xslt sign |
727
b2b10d564893
Simplified nginx versions maintenance by providing only
Ruslan Ermilov <ru@nginx.com>
parents:
721
diff
changeset
|
254 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
|
255 xslt/version.xslt xml/versions.xml) |
0
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 any: sign |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
258 any: NGINX=0.7.69 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
259 |
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 sign: |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
262 @echo sign nginx-$(NGINX) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
263 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
264 gpg -sab binary/download/nginx-$(NGINX).tar.gz |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
265 gpg -sab binary/download/nginx-$(NGINX).zip |
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 |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
268 dir.map: xslt/dirmap.xslt xml/en/docs/dirindex.xml |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
269 @xsltproc -o - xslt/dirmap.xslt xml/en/docs/dirindex.xml | \ |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
270 sort -u -k1,1 | sed 's/^include /\\&/' > $@ |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
271 |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
272 ifeq ($(patsubst %.nginx.org,YES,$(shell hostname)), YES) |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
273 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
|
274 copy: copy_dirmap |
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
275 .PHONY: copy_dirmap |
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
276 copy_dirmap: |
644869149f36
Added commands to install the generated dir.map on a website.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
277 /usr/local/bin/copy_dirmap.sh dir.map |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
278 endif |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
428
diff
changeset
|
279 |
737 | 280 clean: |
743
7951fb38b4b3
The "clean" target will also remove dir.map.
Ruslan Ermilov <ru@nginx.com>
parents:
737
diff
changeset
|
281 rm -rf $(ZIP) $(OUT) xml/*/docs/dirindex.xml dir.map |
737 | 282 |
8
39768562fc89
- Use sed(1) instead of perl(1) for whitespace stripping.
Ruslan Ermilov <ru@nginx.com>
parents:
6
diff
changeset
|
283 .DELETE_ON_ERROR: |