]> git.saurik.com Git - wxWidgets.git/blob - build/script/makedocs.vc
f00e3947acff7d7803a66b250381dd457f4a674d
[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: wxhlp rtf pdfrtf wxhtml htmlhelp htb
15 alldocs: docs
16 hlp: wxhlp
17 wxhlp: $(DOCDIR)/winhelp/wx.hlp
18 rtf: $(DOCDIR)/latex/wx/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
25
26
27
28 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
29 cd $(DOCDIR)/latex/wx
30 -mkdir $(DOCDIR)\winhelp
31 -erase wx.ph
32 hcw /c /e wx
33 -erase $(DOCDIR)\winhelp\wx.hlp
34 -erase $(DOCDIR)\winhelp\wx.cnt
35 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
36 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
37 cd $(THISDIR)
38
39 $(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
40 cd $(DOCDIR)\latex\wx
41 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
42 cd $(THISDIR)
43
44 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
45 cd $(DOCDIR)\latex\wx
46 -mkdir $(DOCDIR)\pdf
47 -copy *.wmf $(DOCDIR)\pdf
48 -copy *.bmp $(DOCDIR)\pdf
49 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
50 cd $(THISDIR)
51
52 # This target does two sets of HTML: one using a style sheet, for
53 # the purposes of the CHM file, and one without.
54 $(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
55 cd $(DOCDIR)\latex\wx
56 -mkdir $(DOCDIR)\html\wx
57 copy *.gif $(DOCDIR)\html\wx
58 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
59 -mkdir $(DOCDIR)\mshtml
60 -mkdir $(DOCDIR)\mshtml\wx
61 copy *.gif $(DOCDIR)\mshtml\wx
62 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\mshtml\wx\wx.htm -twice -html -macros $(DOCDIR)\latex\wx\tex2rtf_css.ini
63 -erase $(DOCDIR)\html\wx\*.con
64 -erase $(DOCDIR)\html\wx\*.ref
65 -erase $(DOCDIR)\latex\wx\*.con
66 -erase $(DOCDIR)\latex\wx\*.ref
67 cd $(THISDIR)
68
69 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx.hhp
70 cd $(DOCDIR)\mshtml\wx
71 copy $(DOCDIR)\latex\wx\wx.css .
72 -hhc wx.hhp
73 -mkdir ..\..\htmlhelp
74 -erase $(DOCDIR)\htmlhelp\wx.chm
75 move wx.chm ..\..\htmlhelp
76 cd $(THISDIR)
77
78 #$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
79 # cd $(WXDIR)\docs\latex\wx
80 # -latex manual
81 # -latex manual
82 # -makeindx manual
83 # -bibtex manual
84 # -latex manual
85 # -latex manual
86 # cd $(THISDIR)
87
88 #$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
89 # cd $(WXDIR)\docs\latex\wx
90 # -dvips32 -o wx.ps manual
91 # move wx.ps $(WXDIR)\docs\ps\wx.ps
92 # cd $(THISDIR)
93
94 #$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
95 # cd $(WXDIR)\docs\latex\wx
96 # -latex referenc
97 # -latex referenc
98 # -makeindx referenc
99 # -bibtex referenc
100 # -latex referenc
101 # -latex referenc
102 # cd $(THISDIR)
103
104 #$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
105 # cd $(WXDIR)\docs\latex\wx
106 # -dvips32 -o referenc.ps referenc
107 # move referenc.ps $(WXDIR)\docs\ps\referenc.ps
108 # cd $(THISDIR)
109
110 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
111 # files, renamed to htb.
112 # This can then be used with e.g. helpview.
113 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
114 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html
115 cd $(WXDIR)\docs\html\wx
116 -erase wx.zip wx.htb
117 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
118 -mkdir $(DOCDIR)\htb
119 move wx.zip $(DOCDIR)\htb\wx.htb
120 cd $(THISDIR)
121
122 # In order to force document reprocessing
123 touchmanual:
124 -touch $(WXDIR)\docs\latex\wx\manual.tex
125
126 updatedocs: touchmanual alldocs
127
128 cleandocs:
129 -erase $(DOCDIR)\winhelp\*.hlp
130 -erase $(DOCDIR)\winhelp\*.cnt
131 -erase $(DOCDIR)\html\wx\*.html
132 -erase $(DOCDIR)\mshtml\wx\*.html
133 -erase $(DOCDIR)\mshtml\wx\*.gif
134 -erase $(DOCDIR)\mshtml\wx\wx.*
135 -erase $(DOCDIR)\pdf\wx.rtf
136 -erase $(DOCDIR)\latex\wx\wx.rtf
137 -erase $(DOCDIR)\latex\wx\WX.PH
138 -erase $(DOCDIR)\htmlhelp\wx.chm
139 -erase $(DOCDIR)\htb\wx.htb
140
141
142 # Only clean the online help, not PDF RTF
143 cleanonlinehelp:
144 -erase $(DOCDIR)\winhelp\wx.hlp
145 -erase $(DOCDIR)\winhelp\wx.cnt
146 -erase $(DOCDIR)\html\wx\*.html
147 -erase $(DOCDIR)\latex\wx\wx.rtf
148 -erase $(DOCDIR)\latex\wx\WX.PH
149 -erase $(DOCDIR)\latex\wx\wx.hpj
150 -erase $(DOCDIR)\htmlhelp\wx.chm
151 -erase $(DOCDIR)\mshtml\wx\*.html
152 -erase $(DOCDIR)\htb\wx.htb
153
154
155 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
156 # Office StartUp folder, and PDFMaker should be installed.
157 #updatepdf: # touchmanual pdfrtf
158 # start $(WAITFLAG) "\progra~1\micros~3\office\winword.exe c:\wx\wxWidgets\docs\pdf\wx.rtf /mGeneratePDF"
159
160
161
162 ######################
163 # Tex2RTF
164 ######################
165
166 TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs
167
168 tex2rtfhtml: $(DOCDIR)\html\tex2rtf\t2rtf.htm
169 tex2rtfhtmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm
170 tex2rtfhtb: $(DOCDIR)\htb\tex2rtf.htb
171 tex2rtfhlp: $(DOCDIR)\winhelp\tex2rtf.hlp
172 tex2rtfpdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
173 tex2rtfps: $(WXDIR)\docs\ps\tex2rtf.ps
174
175 $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj
176 cd $(TEX2RTFDOCDIR)
177 -erase tex2rtf.ph
178 hcw /c /e tex2rtf
179 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
180 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
181 cd $(THISDIR)
182
183 $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
184 cd $(TEX2RTFDOCDIR)
185 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp
186 cd $(THISDIR)
187
188 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
189 cd $(TEX2RTFDOCDIR)
190 -copy *.wmf $(DOCDIR)\pdf
191 -copy *.bmp $(DOCDIR)\pdf
192 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
193 cd $(THISDIR)
194
195 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
196 cd $(TEX2RTFDOCDIR)
197 -mkdir $(DOCDIR)\html\tex2rtf
198 -copy *.gif $(DOCDIR)\html\tex2rtf
199 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
200 -erase $(DOCDIR)\html\tex2rtf\*.con
201 -erase $(DOCDIR)\html\tex2rtf\*.ref
202 cd $(THISDIR)
203
204 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
205 cd $(DOCDIR)\html\tex2rtf
206 -hhc t2rtf.hhp
207 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
208 cd $(THISDIR)
209
210 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
211 # files, renamed to htb.
212 # This can then be used with e.g. helpview.
213 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
214 $(DOCDIR)\htb\tex2rtf.htb: $(DOCDIR)\html\tex2rtf\t2rtf.htm
215 cd $(DOCDIR)\html\tex2rtf
216 -erase tex2rtf.zip tex2rtf.htb
217 zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk
218 -mkdir $(DOCDIR)\htb
219 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
220 cd $(THISDIR)
221
222 #$(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
223 # cd $(TEX2RTFDOCDIR)
224 # -latex tex2rtf
225 # -latex tex2rtf
226 # -makeindx tex2rtf
227 # -bibtex tex2rtf
228 # -latex tex2rtf
229 # -latex tex2rtf
230 # cd $(THISDIR)
231
232 #$(WXDIR)\docs\ps\tex2rtf.ps: $(TEX2RTFDOCDIR)\tex2rtf.dvi
233 # cd $(TEX2RTFDOCDIR)
234 # -dvips32 -o tex2rtf.ps tex2rtf
235 # copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps
236 # cd $(THISDIR)
237 #
238