Mercurial > hg > nginx-quic
annotate docs/GNUmakefile @ 4004:84bd993b8cd3
Lower optimization level for Sun Studio before 12.1.
At least Sun Studio 12 has problems with bit-fields exposed by nginx code
(caught by test suite). They seems to be fixed in Sun Studio 12.1. As a
workaround use "-fast -xalias_level=any" for older versions, it resolves
the problem.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 18 Aug 2011 15:10:23 +0000 |
parents | 36ce2e430bdd |
children | b427290fb6bc |
rev | line source |
---|---|
681 | 1 |
775 | 2 VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
3 | sed -e 's/^.*\"\(.*\)\"/\1/') | |
681 | 4 NGINX= nginx-$(VER) |
5 TEMP= tmp | |
6 CP= $(HOME)/java | |
7 | |
8 define XSLScript | |
3995
3ce6b8cedcb9
update documentation build procedure
Igor Sysoev <igor@sysoev.ru>
parents:
2065
diff
changeset
|
9 java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \ |
681 | 10 com.pault.StyleSheet \ |
11 -x com.pault.XX -y com.pault.XX \ | |
3995
3ce6b8cedcb9
update documentation build procedure
Igor Sysoev <igor@sysoev.ru>
parents:
2065
diff
changeset
|
12 $(1) docs/xsls/dump.xsls \ |
3997 | 13 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2) |
681 | 14 |
15 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) | |
16 endef | |
17 | |
18 define XSLT | |
3999
36ce2e430bdd
Don't ignore xmllint errors.
Ruslan Ermilov <ru@nginx.com>
parents:
3997
diff
changeset
|
19 xmllint --noout --valid $2 |
3995
3ce6b8cedcb9
update documentation build procedure
Igor Sysoev <igor@sysoev.ru>
parents:
2065
diff
changeset
|
20 xsltproc -o $3 \ |
3ce6b8cedcb9
update documentation build procedure
Igor Sysoev <igor@sysoev.ru>
parents:
2065
diff
changeset
|
21 $(shell echo $4 \\ |
681 | 22 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ |
3995
3ce6b8cedcb9
update documentation build procedure
Igor Sysoev <igor@sysoev.ru>
parents:
2065
diff
changeset
|
23 $1 $2 |
681 | 24 endef |
25 | |
26 | |
27 changes: $(TEMP)/$(NGINX)/CHANGES.ru \ | |
28 $(TEMP)/$(NGINX)/CHANGES | |
29 | |
30 | |
31 $(TEMP)/$(NGINX)/CHANGES.ru: docs/xml/nginx/changes.xml \ | |
32 docs/xslt/changes.xslt | |
33 | |
34 test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX) | |
35 | |
36 xsltproc --param lang "'ru'" \ | |
37 -o $(TEMP)/$(NGINX)/CHANGES.ru \ | |
38 docs/xslt/changes.xslt docs/xml/nginx/changes.xml | |
39 | |
40 | |
41 $(TEMP)/$(NGINX)/CHANGES: docs/xml/nginx/changes.xml \ | |
42 docs/xslt/changes.xslt | |
43 | |
2065 | 44 test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX) |
681 | 45 |
46 xsltproc --param lang "'en'" \ | |
47 -o $(TEMP)/$(NGINX)/CHANGES \ | |
48 docs/xslt/changes.xslt docs/xml/nginx/changes.xml | |
49 | |
50 | |
51 docs/xslt/changes.xslt: docs/xsls/changes.xsls | |
52 | |
53 $(call XSLScript, docs/xsls/changes.xsls, $@) | |
54 | |
3996
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
55 html: \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
56 docs/html/http/ngx_http_core_module.html |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
57 |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
58 docs/html/http/ngx_http_core_module.html: \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
59 docs/xml/http/ngx_http_core_module.xml \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
60 docs/xslt/module.xslt \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
61 docs/dtd/module.dtd |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
62 $(call XSLT, docs/xslt/module.xslt, $<, $@) |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
63 |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
64 docs/xslt/module.xslt: docs/xsls/module.xsls \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
65 docs/xslt/directive.xslt \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
66 docs/xslt/content.xslt |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
67 $(call XSLScript, $<, $@) |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
68 |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
69 docs/xslt/%.xslt: docs/xsls/%.xsls |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
70 $(call XSLScript, $<, $@) |