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