]> git.saurik.com Git - wxWidgets.git/blob - build/script/makedocs.vc
Correct the include order for the resource compiler
[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 makefile.vc hlp
34 cd $(THISDIR)
35 cd $(WXDIR)\contrib\src\ogl
36 -nmake -f makefile.vc hlp
37 cd $(THISDIR)
38 cd $(WXDIR)\contrib\src\svg
39 -nmake -f makefile.vc hlp
40 cd $(THISDIR)
41 cd $(WXDIR)\contrib\src\gizmos
42 -nmake -f makefile.vc hlp
43 cd $(THISDIR)
44 cd $(WXDIR)\contrib\src\mmedia
45 -nmake -f makefile.vc hlp
46 cd $(THISDIR)
47
48
49 allpdfrtf: pdfrtf
50
51 allhtb: htb
52
53 allhtml: wxhtml
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
59 cd $(THISDIR)
60 cd $(WXDIR)\contrib\src\ogl
61 nmake -f makefile.vc html
62 cd $(THISDIR)
63 cd $(WXDIR)\contrib\src\svg
64 nmake -f makefile.vc html
65 cd $(THISDIR)
66 cd $(WXDIR)\contrib\src\gizmos
67 nmake -f makefile.vc html
68 cd $(THISDIR)
69 cd $(WXDIR)\contrib\src\mmedia
70 nmake -f makefile.vc html
71 cd $(THISDIR)
72
73 allhtmlhelp: htmlhelp
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 makefile.vc htmlhelp
80 cd $(THISDIR)
81 cd $(WXDIR)\contrib\src\ogl
82 -nmake -f makefile.vc htmlhelp
83 cd $(THISDIR)
84 cd $(WXDIR)\contrib\src\svg
85 -nmake -f makefile.vc htmlhelp
86 cd $(THISDIR)
87 cd $(WXDIR)\contrib\src\gizmos
88 -nmake -f makefile.vc htmlhelp
89 cd $(THISDIR)
90 cd $(WXDIR)\contrib\src\mmedia
91 -nmake -f makefile.vc htmlhelp
92 cd $(THISDIR)
93
94
95 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
96 cd $(DOCDIR)/latex/wx
97 -mkdir $(DOCDIR)\winhelp
98 -erase wx.ph
99 hcw /c /e wx
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
104 cd $(THISDIR)
105
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
109 cd $(THISDIR)
110
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
113 -mkdir $(DOCDIR)\pdf
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
117 cd $(THISDIR)
118
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
134 cd $(THISDIR)
135
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 .
139 -hhc wx.hhp
140 -mkdir ..\..\htmlhelp
141 -erase $(DOCDIR)\htmlhelp\wx.chm
142 move wx.chm ..\..\htmlhelp
143 cd $(THISDIR)
144
145 #$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
146 # cd $(WXDIR)\docs\latex\wx
147 # -latex manual
148 # -latex manual
149 # -makeindx manual
150 # -bibtex manual
151 # -latex manual
152 # -latex manual
153 # cd $(THISDIR)
154
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
159 # cd $(THISDIR)
160
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
163 # -latex referenc
164 # -latex referenc
165 # -makeindx referenc
166 # -bibtex referenc
167 # -latex referenc
168 # -latex referenc
169 # cd $(THISDIR)
170
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
175 # cd $(THISDIR)
176
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
183 -erase wx.zip wx.htb
184 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
185 -mkdir $(DOCDIR)\htb
186 move wx.zip $(DOCDIR)\htb\wx.htb
187 cd $(THISDIR)
188
189 # In order to force document reprocessing
190 touchmanual:
191 -touch $(WXDIR)\docs\latex\wx\manual.tex
192
193 updatedocs: touchmanual alldocs
194
195 cleandocs:
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
207
208
209 # Only clean the online help, not PDF RTF
210 cleanonlinehelp:
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
220
221
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"
226
227
228
229 ######################
230 # Tex2RTF
231 ######################
232
233 TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs
234
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
241
242 $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj
243 cd $(TEX2RTFDOCDIR)
244 -erase tex2rtf.ph
245 hcw /c /e tex2rtf
246 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
247 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
248 cd $(THISDIR)
249
250 $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
251 cd $(TEX2RTFDOCDIR)
252 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp
253 cd $(THISDIR)
254
255 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
256 cd $(TEX2RTFDOCDIR)
257 -copy *.wmf $(DOCDIR)\pdf
258 -copy *.bmp $(DOCDIR)\pdf
259 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
260 cd $(THISDIR)
261
262 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
263 cd $(TEX2RTFDOCDIR)
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
269 cd $(THISDIR)
270
271 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
272 cd $(DOCDIR)\html\tex2rtf
273 -hhc t2rtf.hhp
274 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
275 cd $(THISDIR)
276
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
285 -mkdir $(DOCDIR)\htb
286 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
287 cd $(THISDIR)
288
289 #$(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
290 # cd $(TEX2RTFDOCDIR)
291 # -latex tex2rtf
292 # -latex tex2rtf
293 # -makeindx tex2rtf
294 # -bibtex tex2rtf
295 # -latex tex2rtf
296 # -latex tex2rtf
297 # cd $(THISDIR)
298
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
303 # cd $(THISDIR)
304 #
305