]> git.saurik.com Git - wxWidgets.git/blob - build/script/makedocs.vc
added makefile targets for building individual libs, e.g. 'make wxnet'
[wxWidgets.git] / build / script / makedocs.vc
1 # File: makedocs.vc
2 #
3 # Author: Julian Smart
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1997, Julian Smart
7
8 WXDIR=$(WXWIN)
9 THISDIR=$(WXWIN)\build\script
10 DOCDIR = $(WXDIR)\docs
11 WAITFLAG=/w
12
13 # Making documents
14 docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp htmlhelp
15 alldocs: docs
16 hlp: wxhlp
17 wxhlp: $(DOCDIR)/winhelp/wx.hlp
18 rtf: $(DOCDIR)/winhelp/wx.rtf
19 pdfrtf: $(DOCDIR)/pdf/wx.rtf
20 html: wxhtml
21 htb: $(DOCDIR)\htb\wx.htb
22 wxhtml: $(DOCDIR)\html\wx\wx_contents.html
23 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
24 #ps: wxps
25 #wxps: $(WXDIR)\docs\ps\wx.ps
26
27 allhlp: wxhlp
28 # cd $(WXDIR)\utils\dialoged\src
29 # nmake -f makefile.vc hlp
30 cd $(WXDIR)\utils\tex2rtf\docs
31 nmake -f makefile.vc hlp
32 cd $(WXDIR)\contrib\src\fl
33 -nmake -f makedocs.vc hlp
34 cd $(THISDIR)
35 cd $(WXDIR)\contrib\src\ogl
36 -nmake -f makedocs.vc hlp
37 cd $(THISDIR)
38 cd $(WXDIR)\contrib\src\svg
39 -nmake -f makedocs.vc hlp
40 cd $(THISDIR)
41 cd $(WXDIR)\contrib\src\gizmos
42 -nmake -f makedocs.vc hlp
43 cd $(THISDIR)
44 cd $(WXDIR)\contrib\src\mmedia
45 -nmake -f makedocs.vc hlp
46 cd $(THISDIR)
47
48
49 allpdfrtf: pdfrtf
50
51 allhtb: htb
52 # cd $(WXDIR)\utils\dialoged\src
53 # nmake -f makefile.vc htb
54 cd $(WXDIR)\utils\tex2rtf\docs
55 nmake -f makefile.vc htb
56 cd $(WXDIR)\contrib\src\fl
57 cd $(THISDIR)
58 cd $(WXDIR)\contrib\src\ogl
59 nmake -f makedocs.vc htb
60 cd $(THISDIR)
61 cd $(WXDIR)\contrib\src\svg
62 nmake -f makedocs.vc htb
63 cd $(THISDIR)
64 cd $(WXDIR)\contrib\src\gizmos
65 nmake -f makedocs.vc htb
66 cd $(THISDIR)
67 cd $(WXDIR)\contrib\src\mmedia
68 nmake -f makedocs.vc htb
69 cd $(THISDIR)
70
71 allhtml: wxhtml
72 # cd $(WXDIR)\utils\dialoged\src
73 # nmake -f makefile.vc html
74 cd $(WXDIR)\utils\tex2rtf\docs
75 nmake -f makefile.vc html
76 cd $(WXDIR)\contrib\src\fl
77 cd $(THISDIR)
78 cd $(WXDIR)\contrib\src\ogl
79 nmake -f makedocs.vc html
80 cd $(THISDIR)
81 cd $(WXDIR)\contrib\src\svg
82 nmake -f makedocs.vc html
83 cd $(THISDIR)
84 cd $(WXDIR)\contrib\src\gizmos
85 nmake -f makedocs.vc html
86 cd $(THISDIR)
87 cd $(WXDIR)\contrib\src\mmedia
88 nmake -f makedocs.vc html
89 cd $(THISDIR)
90
91
92 allhtmlhelp: htmlhelp
93 # cd $(WXDIR)\utils\dialoged\src
94 # nmake -f makefile.vc htmlhelp
95 cd $(WXDIR)\utils\tex2rtf\docs
96 -nmake -f makefile.vc htmlhelp
97 cd $(WXDIR)\contrib\src\fl
98 -nmake -f makedocs.vc htmlhelp
99 cd $(THISDIR)
100 cd $(WXDIR)\contrib\src\ogl
101 -nmake -f makedocs.vc htmlhelp
102 cd $(THISDIR)
103 cd $(WXDIR)\contrib\src\svg
104 -nmake -f makedocs.vc htmlhelp
105 cd $(THISDIR)
106 cd $(WXDIR)\contrib\src\gizmos
107 -nmake -f makedocs.vc htmlhelp
108 cd $(THISDIR)
109 cd $(WXDIR)\contrib\src\mmedia
110 -nmake -f makedocs.vc htmlhelp
111 cd $(THISDIR)
112
113
114 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
115 cd $(DOCDIR)/latex/wx
116 -mkdir $(DOCDIR)\winhelp
117 -erase wx.ph
118 hcw /c /e wx
119 -erase $(DOCDIR)\winhelp\wx.hlp
120 -erase $(DOCDIR)\winhelp\wx.cnt
121 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
122 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
123 cd $(THISDIR)
124
125 $(DOCDIR)/latex/wx/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
126 cd $(DOCDIR)\latex\wx
127 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
128 cd $(THISDIR)
129
130 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
131 cd $(DOCDIR)\latex\wx
132 -mkdir $(DOCDIR)\pdf
133 -copy *.wmf $(DOCDIR)\pdf
134 -copy *.bmp $(DOCDIR)\pdf
135 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
136 cd $(THISDIR)
137
138 # This target does two sets of HTML: one using a style sheet, for
139 # the purposes of the CHM file, and one without.
140 $(DOCDIR)\html\wx\wx_contents.html: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex
141 cd $(DOCDIR)\latex\wx
142 -mkdir $(DOCDIR)\html\wx
143 copy *.gif $(DOCDIR)\html\wx
144 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
145 -mkdir $(DOCDIR)\mshtml
146 -mkdir $(DOCDIR)\mshtml\wx
147 copy *.gif $(DOCDIR)\mshtml\wx
148 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\mshtml\wx\wx.htm -twice -html -macros $(DOCDIR)\latex\wx\tex2rtf_css.ini
149 -erase $(DOCDIR)\html\wx\*.con
150 -erase $(DOCDIR)\html\wx\*.ref
151 -erase $(DOCDIR)\latex\wx\*.con
152 -erase $(DOCDIR)\latex\wx\*.ref
153 cd $(THISDIR)
154
155 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx.hhp
156 cd $(DOCDIR)\mshtml\wx
157 copy $(DOCDIR)\latex\wx\wx.css .
158 -hhc wx.hhp
159 -mkdir ..\..\htmlhelp
160 -erase $(DOCDIR)\htmlhelp\wx.chm
161 move wx.chm ..\..\htmlhelp
162 cd $(THISDIR)
163
164 #$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
165 # cd $(WXDIR)\docs\latex\wx
166 # -latex manual
167 # -latex manual
168 # -makeindx manual
169 # -bibtex manual
170 # -latex manual
171 # -latex manual
172 # cd $(THISDIR)
173
174 #$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
175 # cd $(WXDIR)\docs\latex\wx
176 # -dvips32 -o wx.ps manual
177 # move wx.ps $(WXDIR)\docs\ps\wx.ps
178 # cd $(THISDIR)
179
180 #$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
181 # cd $(WXDIR)\docs\latex\wx
182 # -latex referenc
183 # -latex referenc
184 # -makeindx referenc
185 # -bibtex referenc
186 # -latex referenc
187 # -latex referenc
188 # cd $(THISDIR)
189
190 #$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
191 # cd $(WXDIR)\docs\latex\wx
192 # -dvips32 -o referenc.ps referenc
193 # move referenc.ps $(WXDIR)\docs\ps\referenc.ps
194 # cd $(THISDIR)
195
196 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
197 # files, renamed to htb.
198 # This can then be used with e.g. helpview.
199 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
200 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html
201 cd $(WXDIR)\docs\html\wx
202 -erase wx.zip wx.htb
203 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
204 -mkdir $(DOCDIR)\htb
205 move wx.zip $(DOCDIR)\htb\wx.htb
206 cd $(THISDIR)
207
208 # In order to force document reprocessing
209 touchmanual:
210 -touch $(WXDIR)\docs\latex\wx\manual.tex
211
212 updatedocs: touchmanual alldocs
213
214 cleandocs:
215 -erase $(DOCDIR)\winhelp\*.hlp
216 -erase $(DOCDIR)\winhelp\*.cnt
217 -erase $(DOCDIR)\html\wx\*.html
218 -erase $(DOCDIR)\mshtml\wx\*.html
219 -erase $(DOCDIR)\mshtml\wx\*.gif
220 -erase $(DOCDIR)\mshtml\wx\wx.*
221 -erase $(DOCDIR)\pdf\wx.rtf
222 -erase $(DOCDIR)\latex\wx\wx.rtf
223 -erase $(DOCDIR)\latex\wx\WX.PH
224 -erase $(DOCDIR)\htmlhelp\wx.chm
225 -erase $(DOCDIR)\htb\wx.htb
226
227
228 # Only clean the online help, not PDF RTF
229 cleanonlinehelp:
230 -erase $(DOCDIR)\winhelp\wx.hlp
231 -erase $(DOCDIR)\winhelp\wx.cnt
232 -erase $(DOCDIR)\html\wx\*.html
233 -erase $(DOCDIR)\latex\wx\wx.rtf
234 -erase $(DOCDIR)\latex\wx\WX.PH
235 -erase $(DOCDIR)\latex\wx\wx.hpj
236 -erase $(DOCDIR)\htmlhelp\wx.chm
237 -erase $(DOCDIR)\mshtml\wx\*.html
238 -erase $(DOCDIR)\htb\wx.htb
239
240
241 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
242 # Office StartUp folder, and PDFMaker should be installed.
243 #updatepdf: # touchmanual pdfrtf
244 # start $(WAITFLAG) "\progra~1\micros~3\office\winword.exe c:\wx\wxWidgets\docs\pdf\wx.rtf /mGeneratePDF"
245
246
247
248 ######################
249 # Tex2RTF
250 ######################
251
252 TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs
253
254 tex2rtfhtml: $(DOCDIR)\html\tex2rtf\t2rtf.htm
255 tex2rtfhtmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm
256 tex2rtfhtb: $(DOCDIR)\htb\tex2rtf.htb
257 tex2rtfhlp: $(DOCDIR)\winhelp\tex2rtf.hlp
258 tex2rtfpdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
259 tex2rtfps: $(WXDIR)\docs\ps\tex2rtf.ps
260
261 $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj
262 cd $(TEX2RTFDOCDIR)
263 -erase tex2rtf.ph
264 hcw /c /e tex2rtf
265 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
266 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
267 cd $(THISDIR)
268
269 $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
270 cd $(TEX2RTFDOCDIR)
271 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp
272 cd $(THISDIR)
273
274 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
275 cd $(TEX2RTFDOCDIR)
276 -copy *.wmf $(DOCDIR)\pdf
277 -copy *.bmp $(DOCDIR)\pdf
278 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
279 cd $(THISDIR)
280
281 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
282 cd $(TEX2RTFDOCDIR)
283 -mkdir $(DOCDIR)\html\tex2rtf
284 -copy *.gif $(DOCDIR)\html\tex2rtf
285 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
286 -erase $(DOCDIR)\html\tex2rtf\*.con
287 -erase $(DOCDIR)\html\tex2rtf\*.ref
288 cd $(THISDIR)
289
290 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
291 cd $(DOCDIR)\html\tex2rtf
292 -hhc t2rtf.hhp
293 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
294 cd $(THISDIR)
295
296 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
297 # files, renamed to htb.
298 # This can then be used with e.g. helpview.
299 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
300 $(DOCDIR)\htb\tex2rtf.htb: $(DOCDIR)\html\tex2rtf\t2rtf.htm
301 cd $(DOCDIR)\html\tex2rtf
302 -erase tex2rtf.zip tex2rtf.htb
303 zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk
304 -mkdir $(DOCDIR)\htb
305 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
306 cd $(THISDIR)
307
308 #$(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
309 # cd $(TEX2RTFDOCDIR)
310 # -latex tex2rtf
311 # -latex tex2rtf
312 # -makeindx tex2rtf
313 # -bibtex tex2rtf
314 # -latex tex2rtf
315 # -latex tex2rtf
316 # cd $(THISDIR)
317
318 #$(WXDIR)\docs\ps\tex2rtf.ps: $(TEX2RTFDOCDIR)\tex2rtf.dvi
319 # cd $(TEX2RTFDOCDIR)
320 # -dvips32 -o tex2rtf.ps tex2rtf
321 # copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps
322 # cd $(THISDIR)
323 #
324