Mercurial > hg > nginx-quic
annotate docs/GNUmakefile @ 4023:dc4b7050e17e
Get rid of " <br/>" hacks.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 23 Aug 2011 09:01:13 +0000 |
parents | b427290fb6bc |
children | 22364b1f61c9 |
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 \ | |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
32 docs/xml/change_log_conf.xml \ |
681 | 33 docs/xslt/changes.xslt |
34 | |
35 test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX) | |
36 | |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
37 xsltproc --stringparam lang ru \ |
681 | 38 -o $(TEMP)/$(NGINX)/CHANGES.ru \ |
39 docs/xslt/changes.xslt docs/xml/nginx/changes.xml | |
40 | |
41 | |
42 $(TEMP)/$(NGINX)/CHANGES: docs/xml/nginx/changes.xml \ | |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
43 docs/xml/change_log_conf.xml \ |
681 | 44 docs/xslt/changes.xslt |
45 | |
2065 | 46 test -d $(TEMP)/$(NGINX) || mkdir -p $(TEMP)/$(NGINX) |
681 | 47 |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
48 xsltproc --stringparam lang en \ |
681 | 49 -o $(TEMP)/$(NGINX)/CHANGES \ |
50 docs/xslt/changes.xslt docs/xml/nginx/changes.xml | |
51 | |
52 | |
53 docs/xslt/changes.xslt: docs/xsls/changes.xsls | |
54 | |
55 $(call XSLScript, docs/xsls/changes.xsls, $@) | |
56 | |
3996
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
57 html: \ |
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 |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
60 docs/html/http/%.html: \ |
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
61 docs/xml/http/%.xml \ |
3996
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
62 docs/xslt/module.xslt \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
63 docs/dtd/module.dtd |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
64 $(call XSLT, docs/xslt/module.xslt, $<, $@) |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
65 |
4013
b427290fb6bc
- Added missing dependencies for the CHANGES{,ru} targets.
Ruslan Ermilov <ru@nginx.com>
parents:
3999
diff
changeset
|
66 docs/xslt/module.xslt: \ |
3996
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
67 docs/xslt/directive.xslt \ |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
68 docs/xslt/content.xslt |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
69 |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
70 docs/xslt/%.xslt: docs/xsls/%.xsls |
fc808f006ff4
skeleton for documentation processing
Igor Sysoev <igor@sysoev.ru>
parents:
3995
diff
changeset
|
71 $(call XSLScript, $<, $@) |