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