6 # Copyright: (c) 1997, Julian Smart
9 THISDIR=$(WXWIN)\build\script
10 DOCDIR = $(WXDIR)\docs
14 docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp htmlhelp
17 wxhlp: $(DOCDIR)/winhelp/wx.hlp
18 rtf: $(DOCDIR)/winhelp/wx.rtf
19 pdfrtf: $(DOCDIR)/pdf/wx.rtf
21 htb: $(DOCDIR)\htb\wx.htb
22 wxhtml: $(DOCDIR)\html\wx\wx_contents.html
23 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
25 #wxps: $(WXDIR)\docs\ps\wx.ps
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
35 cd $(WXDIR)\contrib\src\ogl
36 -nmake -f makedocs.vc hlp
38 cd $(WXDIR)\contrib\src\svg
39 -nmake -f makedocs.vc hlp
41 cd $(WXDIR)\contrib\src\gizmos
42 -nmake -f makedocs.vc hlp
44 cd $(WXDIR)\contrib\src\mmedia
45 -nmake -f makedocs.vc hlp
54 # cd $(WXDIR)\utils\dialoged\src
55 # nmake -f makefile.vc html
56 cd $(WXDIR)\utils\tex2rtf\docs
57 nmake -f makefile.vc html
58 cd $(WXDIR)\contrib\src\fl
60 cd $(WXDIR)\contrib\src\ogl
61 nmake -f makedocs.vc html
63 cd $(WXDIR)\contrib\src\svg
64 nmake -f makedocs.vc html
66 cd $(WXDIR)\contrib\src\gizmos
67 nmake -f makedocs.vc html
69 cd $(WXDIR)\contrib\src\mmedia
70 nmake -f makedocs.vc html
74 # cd $(WXDIR)\utils\dialoged\src
75 # nmake -f makefile.vc htmlhelp
76 cd $(WXDIR)\utils\tex2rtf\docs
77 -nmake -f makefile.vc htmlhelp
78 cd $(WXDIR)\contrib\src\fl
79 -nmake -f makedocs.vc htmlhelp
81 cd $(WXDIR)\contrib\src\ogl
82 -nmake -f makedocs.vc htmlhelp
84 cd $(WXDIR)\contrib\src\svg
85 -nmake -f makedocs.vc htmlhelp
87 cd $(WXDIR)\contrib\src\gizmos
88 -nmake -f makedocs.vc htmlhelp
90 cd $(WXDIR)\contrib\src\mmedia
91 -nmake -f makedocs.vc htmlhelp
95 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
97 -mkdir $(DOCDIR)\winhelp
100 -erase $(DOCDIR)\winhelp\wx.hlp
101 -erase $(DOCDIR)\winhelp\wx.cnt
102 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
103 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
106 $(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
107 cd $(DOCDIR)\latex\wx
108 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
111 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
112 cd $(DOCDIR)\latex\wx
114 -copy *.wmf $(DOCDIR)\pdf
115 -copy *.bmp $(DOCDIR)\pdf
116 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
119 # This target does two sets of HTML: one using a style sheet, for
120 # the purposes of the CHM file, and one without.
121 $(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
122 cd $(DOCDIR)\latex\wx
123 -mkdir $(DOCDIR)\html\wx
124 copy *.gif $(DOCDIR)\html\wx
125 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
126 -mkdir $(DOCDIR)\mshtml
127 -mkdir $(DOCDIR)\mshtml\wx
128 copy *.gif $(DOCDIR)\mshtml\wx
129 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\mshtml\wx\wx.htm -twice -html -macros $(DOCDIR)\latex\wx\tex2rtf_css.ini
130 -erase $(DOCDIR)\html\wx\*.con
131 -erase $(DOCDIR)\html\wx\*.ref
132 -erase $(DOCDIR)\latex\wx\*.con
133 -erase $(DOCDIR)\latex\wx\*.ref
136 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx.hhp
137 cd $(DOCDIR)\mshtml\wx
138 copy $(DOCDIR)\latex\wx\wx.css .
140 -mkdir ..\..\htmlhelp
141 -erase $(DOCDIR)\htmlhelp\wx.chm
142 move wx.chm ..\..\htmlhelp
145 #$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
146 # cd $(WXDIR)\docs\latex\wx
155 #$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
156 # cd $(WXDIR)\docs\latex\wx
157 # -dvips32 -o wx.ps manual
158 # move wx.ps $(WXDIR)\docs\ps\wx.ps
161 #$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
162 # cd $(WXDIR)\docs\latex\wx
171 #$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
172 # cd $(WXDIR)\docs\latex\wx
173 # -dvips32 -o referenc.ps referenc
174 # move referenc.ps $(WXDIR)\docs\ps\referenc.ps
177 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
178 # files, renamed to htb.
179 # This can then be used with e.g. helpview.
180 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
181 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html
182 cd $(WXDIR)\docs\html\wx
184 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
186 move wx.zip $(DOCDIR)\htb\wx.htb
189 # In order to force document reprocessing
191 -touch $(WXDIR)\docs\latex\wx\manual.tex
193 updatedocs: touchmanual alldocs
196 -erase $(DOCDIR)\winhelp\*.hlp
197 -erase $(DOCDIR)\winhelp\*.cnt
198 -erase $(DOCDIR)\html\wx\*.html
199 -erase $(DOCDIR)\mshtml\wx\*.html
200 -erase $(DOCDIR)\mshtml\wx\*.gif
201 -erase $(DOCDIR)\mshtml\wx\wx.*
202 -erase $(DOCDIR)\pdf\wx.rtf
203 -erase $(DOCDIR)\latex\wx\wx.rtf
204 -erase $(DOCDIR)\latex\wx\WX.PH
205 -erase $(DOCDIR)\htmlhelp\wx.chm
206 -erase $(DOCDIR)\htb\wx.htb
209 # Only clean the online help, not PDF RTF
211 -erase $(DOCDIR)\winhelp\wx.hlp
212 -erase $(DOCDIR)\winhelp\wx.cnt
213 -erase $(DOCDIR)\html\wx\*.html
214 -erase $(DOCDIR)\latex\wx\wx.rtf
215 -erase $(DOCDIR)\latex\wx\WX.PH
216 -erase $(DOCDIR)\latex\wx\wx.hpj
217 -erase $(DOCDIR)\htmlhelp\wx.chm
218 -erase $(DOCDIR)\mshtml\wx\*.html
219 -erase $(DOCDIR)\htb\wx.htb
222 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
223 # Office StartUp folder, and PDFMaker should be installed.
224 #updatepdf: # touchmanual pdfrtf
225 # start $(WAITFLAG) "\progra~1\micros~3\office\winword.exe c:\wx\wxWidgets\docs\pdf\wx.rtf /mGeneratePDF"
229 ######################
231 ######################
233 TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs
235 tex2rtfhtml: $(DOCDIR)\html\tex2rtf\t2rtf.htm
236 tex2rtfhtmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm
237 tex2rtfhtb: $(DOCDIR)\htb\tex2rtf.htb
238 tex2rtfhlp: $(DOCDIR)\winhelp\tex2rtf.hlp
239 tex2rtfpdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
240 tex2rtfps: $(WXDIR)\docs\ps\tex2rtf.ps
242 $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj
246 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
247 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
250 $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
252 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp
255 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
257 -copy *.wmf $(DOCDIR)\pdf
258 -copy *.bmp $(DOCDIR)\pdf
259 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
262 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
264 -mkdir $(DOCDIR)\html\tex2rtf
265 -copy *.gif $(DOCDIR)\html\tex2rtf
266 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
267 -erase $(DOCDIR)\html\tex2rtf\*.con
268 -erase $(DOCDIR)\html\tex2rtf\*.ref
271 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
272 cd $(DOCDIR)\html\tex2rtf
274 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
277 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
278 # files, renamed to htb.
279 # This can then be used with e.g. helpview.
280 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
281 $(DOCDIR)\htb\tex2rtf.htb: $(DOCDIR)\html\tex2rtf\t2rtf.htm
282 cd $(DOCDIR)\html\tex2rtf
283 -erase tex2rtf.zip tex2rtf.htb
284 zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk
286 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
289 #$(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
290 # cd $(TEX2RTFDOCDIR)
299 #$(WXDIR)\docs\ps\tex2rtf.ps: $(TEX2RTFDOCDIR)\tex2rtf.dvi
300 # cd $(TEX2RTFDOCDIR)
301 # -dvips32 -o tex2rtf.ps tex2rtf
302 # copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps