ipliteral was not recognizing "ipv6" prefix.
[exim.git] / doc / doc-docbook / Makefile
CommitLineData
c2782242 1# $Cambridge: exim/doc/doc-docbook/Makefile,v 1.4 2005/12/01 15:29:42 ph10 Exp $
168e428f
PH
2
3# Make file for Exim documentation from Asciidoc source.
4
5notarget:; @echo "** You must specify a target, in the form x.y, where x is 'filter', 'spec',"
6 @echo "** or 'test', and y is 'xml', 'fo', 'ps', 'pdf', 'html', 'txt', or 'info'."
7 @echo "** One other possible target is 'exim.8'".
8 exit 1
9
10
11############################## MAN PAGE ################################
12
13exim.8: spec.xml
14 ./x2man
15
16########################################################################
17
18
19############################### FILTER #################################
20
21filter.xml: filter.ascd MyAsciidoc.conf
22 asciidoc -d book -b docbook -f MyAsciidoc.conf filter.ascd
23
24filter-fo.xml: filter.xml Pre-xml
25 Pre-xml -bookinfo <filter.xml >filter-fo.xml
26
27filter-html.xml: filter.xml Pre-xml
068aaea8 28 Pre-xml -html <filter.xml >filter-html.xml
168e428f
PH
29
30filter-txt.xml: filter.xml Pre-xml
068aaea8 31 Pre-xml -ascii -html <filter.xml >filter-txt.xml
168e428f
PH
32
33filter.fo: filter-fo.xml MyStyle-filter-fo.xsl MyStyle-fo.xsl MyStyle.xsl
34 /bin/rm -rf filter.fo filter-fo.fo
35 xmlto -x MyStyle-filter-fo.xsl fo filter-fo.xml
36 /bin/mv -f filter-fo.fo filter.fo
37
38filter.ps: filter.fo
068aaea8
PH
39 fop filter.fo -ps filter-tmp.ps
40 mv filter-tmp.ps filter.ps
168e428f 41
d1e83bff
PH
42#filter.pdf: filter.fo
43# fop filter.fo -pdf filter-tmp.pdf
44# mv filter-tmp.pdf filter.pdf
45
46filter.pdf: filter.ps
c2782242 47 ps2pdf -sPAPERSIZE=a4 filter.ps filter.pdf
168e428f
PH
48
49filter.html: filter-html.xml TidyHTML-filter MyStyle-nochunk-html.xsl MyStyle-html.xsl MyStyle.xsl
50 /bin/rm -rf filter.html filter-html.html
51 xmlto -x MyStyle-nochunk-html.xsl html-nochunks filter-html.xml
52 /bin/mv -f filter-html.html filter.html
068aaea8 53 ./TidyHTML-filter
168e428f
PH
54
55filter.txt: filter-txt.xml Tidytxt MyStyle-txt-html.xsl MyStyle-html.xsl MyStyle.xsl
56 /bin/rm -rf filter-txt.html
57 xmlto -x MyStyle-txt-html.xsl html-nochunks filter-txt.xml
58 w3m -dump filter-txt.html >filter.txt
59
60# I have not found a way of making docbook2texi write its output anywhere
61# other than the file name that it makes up. The --to-stdout option does not
62# work.
63
64filter.info: filter-txt.xml
65 docbook2texi filter-txt.xml
66 perl -ne 's/conceptindex/cindex/;s/optionindex/findex/;print;' \
67 <exim_filtering.texi | Tidytxt >filter.texinfo
68 /bin/rm -rf exim_filtering.texi
69 makeinfo -o filter.info filter.texinfo
70
71########################################################################
72
73
74################################ SPEC ##################################
75
76spec.xml: spec.ascd MyAsciidoc.conf
77 asciidoc -d book -b docbook -f MyAsciidoc.conf spec.ascd
78
79spec-fo.xml: spec.xml Pre-xml
80 Pre-xml <spec.xml >spec-fo.xml
81
82spec-html.xml: spec.xml Pre-xml
068aaea8 83 Pre-xml -abstract -html -oneindex <spec.xml >spec-html.xml
168e428f
PH
84
85spec-txt.xml: spec.xml Pre-xml
068aaea8 86 Pre-xml -abstract -ascii -html -noindex <spec.xml >spec-txt.xml
168e428f
PH
87
88spec.fo: spec-fo.xml MyStyle-spec-fo.xsl MyStyle-fo.xsl MyStyle.xsl MyTitleStyle.xsl
89 /bin/rm -rf spec.fo spec-fo.fo
90 xmlto -x MyStyle-spec-fo.xsl fo spec-fo.xml
91 /bin/mv -f spec-fo.fo spec.fo
92
93spec.ps: spec.fo
068aaea8
PH
94 FOP_OPTS=-Xmx512m fop spec.fo -ps spec-tmp.ps
95 mv spec-tmp.ps spec.ps
168e428f 96
d1e83bff
PH
97#spec.pdf: spec.fo
98# FOP_OPTS=-Xmx512m fop spec.fo -pdf spec-tmp.pdf
99# mv spec-tmp.pdf spec.pdf
100
101spec.pdf: spec.ps
102 ps2pdf spec.ps spec.pdf
168e428f
PH
103
104spec.html: spec-html.xml TidyHTML-spec MyStyle-chunk-html.xsl MyStyle-html.xsl MyStyle.xsl
105 /bin/rm -rf spec.html
106 xmlto -x MyStyle-chunk-html.xsl -o spec.html html spec-html.xml
107 ./TidyHTML-spec
108
109spec.txt: spec-txt.xml Tidytxt MyStyle-txt-html.xsl MyStyle-html.xsl MyStyle.xsl
110 /bin/rm -rf spec-txt.html
111 xmlto -x MyStyle-txt-html.xsl html-nochunks spec-txt.xml
112 w3m -dump spec-txt.html | Tidytxt >spec.txt
113
114# I have not found a way of making docbook2texi write its output anywhere
115# other than the file name that it makes up. The --to-stdout option does not
116# work.
117
118spec.info: spec-txt.xml
119 docbook2texi spec-txt.xml
120 perl -ne 's/conceptindex/cindex/;s/optionindex/findex/;print;' \
121 <the_exim_mta.texi >spec.texinfo
122 /bin/rm -rf the_exim_mta.texi
123 makeinfo -o spec.info spec.texinfo
124
125########################################################################
126
127
128################################ TEST ##################################
129
130# These targets (similar to the above) are for running little tests.
131
132test.xml: test.ascd MyAsciidoc.conf
133 asciidoc -d book -b docbook -f MyAsciidoc.conf test.ascd
134
135test-fo.xml: test.xml Pre-xml
136 ./Pre-xml <test.xml >test-fo.xml
137
138test-html.xml: test.xml Pre-xml
068aaea8 139 ./Pre-xml -abstract -html -oneindex <test.xml >test-html.xml
168e428f
PH
140
141test-txt.xml: test.xml Pre-xml
068aaea8 142 ./Pre-xml -abstract -ascii -html -noindex <test.xml >test-txt.xml
168e428f
PH
143
144test.fo: test-fo.xml MyStyle-spec-fo.xsl MyStyle-fo.xsl MyStyle.xsl MyTitleStyle.xsl
145 /bin/rm -rf test.fo test-fo.fo
146 xmlto -x MyStyle-spec-fo.xsl fo test-fo.xml
147 /bin/mv -f test-fo.fo test.fo
148
149test.ps: test.fo
068aaea8
PH
150 fop test.fo -ps test-tmp.ps
151 mv test-tmp.ps test.ps
168e428f 152
d1e83bff
PH
153#test.pdf: test.fo
154# fop test.fo -pdf test-tmp.pdf
155# mv test-tmp.pdf test.pdf
156
157test.pdf: test.ps
158 ps2pdf test.ps test.pdf
168e428f
PH
159
160test.html: test-html.xml MyStyle-nochunk-html.xsl MyStyle-html.xsl MyStyle.xsl
161 /bin/rm -rf test.html test-html.html
162 xmlto -x MyStyle-nochunk-html.xsl html-nochunks test-html.xml
163 /bin/mv -f test-html.html test.html
164
165test.txt: test-txt.xml Tidytxt MyStyle-txt-html.xsl MyStyle-html.xsl MyStyle.xsl
166 /bin/rm -rf test-txt.html
167 xmlto -x MyStyle-txt-html.xsl html-nochunks test-txt.xml
168 w3m -dump test-txt.html | Tidytxt >test.txt
169
170# I have not found a way of making docbook2texi write its output anywhere
171# other than the file name that it makes up. The --to-stdout option does not
172# work.
173
174test.info: test-txt.xml
175 docbook2texi test-txt.xml
176 perl -ne 's/conceptindex/cindex/;s/optionindex/findex/;print;' \
177 <short_title.texi >test.texinfo
178 /bin/rm -rf short_title.texi
179 makeinfo -o test.info test.texinfo
180
181########################################################################
182
183
184################################ CLEAN #################################
185
186clean:; /bin/rm -rf exim.8 \
187 filter*.xml spec*.xml test*.xml \
188 *.fo *.html *.pdf *.ps \
189 filter*.txt spec*.txt test*.txt \
190 *.info* *.texinfo *.texi
191
192########################################################################