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