5 # Copyright: (c) 1997, Julian Smart
9 # Makefile : Builds wxWidgets library wx.lib for VC++ (32-bit)
12 # FINAL=1 argument to nmake to build version with no debugging info.
13 # dll builds a library (wxdll.lib) suitable for creating DLLs
16 THISDIR=$(WXWIN)\distrib\msw
17 DOCDIR = $(WXDIR)\docs
20 docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
23 wxhlp: $(DOCDIR)/winhelp/wx.hlp
24 rtf: $(DOCDIR)/winhelp/wx.rtf
25 pdfrtf: $(DOCDIR)/pdf/wx.rtf
27 htb: $(DOCDIR)\htb\wx.htb
28 wxhtml: $(DOCDIR)\html\wx\wx_contents.html
29 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
31 wxps: $(WXDIR)\docs\ps\wx.ps
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
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
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
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
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
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
90 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
92 -mkdir $(DOCDIR)\winhelp
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
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
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
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
114 # This target does two sets of HTML: one using a style sheet, for
115 # the purposes of the CHM file, and one without.
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
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
131 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx.hhp
132 cd $(DOCDIR)\mshtml\wx
133 copy $(DOCDIR)\latex\wx\wx.css .
135 -mkdir ..\..\htmlhelp
136 -erase $(DOCDIR)\htmlhelp\wx.chm
137 move wx.chm ..\..\htmlhelp
140 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
141 cd $(WXDIR)\docs\latex\wx
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
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
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
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.
176 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html
177 cd $(WXDIR)\docs\html\wx
179 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
181 move wx.zip $(DOCDIR)\htb\wx.htb
184 # In order to force document reprocessing
186 -touch $(WXDIR)\docs\latex\wx\manual.tex
188 updatedocs: touchmanual alldocs
191 -erase $(DOCDIR)\winhelp\wx.hlp
192 -erase $(DOCDIR)\winhelp\wx.cnt
193 -erase $(DOCDIR)\html\wx\*.html
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
200 # Only clean the online help, not PDF RTF
202 -erase $(DOCDIR)\winhelp\wx.hlp
203 -erase $(DOCDIR)\winhelp\wx.cnt
204 -erase $(DOCDIR)\html\wx\*.html
205 -erase $(DOCDIR)\latex\wx\wx.rtf
206 -erase $(DOCDIR)\latex\wx\WX.PH
207 -erase $(DOCDIR)\latex\wx\wx.hpj
208 -erase $(DOCDIR)\htmlhelp\wx.chm
209 -erase $(DOCDIR)\mshtml\wx\*.html
210 -erase $(DOCDIR)\htb\wx.htb
212 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
213 # Office StartUp folder, and PDFMaker should be installed.
214 updatepdf: # touchmanual pdfrtf
215 start $(WAITFLAG) "winword d:\wx2\wxWidgets\docs\pdf\wx.rtf /mGeneratePDF"
219 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
220 cd $(WXWIN)\distrib\msw\tmake
221 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
222 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
224 ######################
226 ######################
228 TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs
230 tex2rtfhtml: $(DOCDIR)\html\tex2rtf\t2rtf.htm
231 tex2rtfhtmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm
232 tex2rtfhtb: $(DOCDIR)\htb\tex2rtf.htb
233 tex2rtfhlp: $(DOCDIR)\winhelp\tex2rtf.hlp
234 tex2rtfpdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
235 tex2rtfps: $(WXDIR)\docs\ps\tex2rtf.ps
237 $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj
241 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
242 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
245 $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
247 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp
250 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
252 -copy *.wmf $(DOCDIR)\pdf
253 -copy *.bmp $(DOCDIR)\pdf
254 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
257 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
259 -mkdir $(DOCDIR)\html\tex2rtf
260 -copy *.gif $(DOCDIR)\html\tex2rtf
261 -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
262 -erase $(DOCDIR)\html\tex2rtf\*.con
263 -erase $(DOCDIR)\html\tex2rtf\*.ref
266 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
267 cd $(DOCDIR)\html\tex2rtf
269 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
272 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
273 # files, renamed to htb.
274 # This can then be used with e.g. helpview.
275 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
276 $(DOCDIR)\htb\tex2rtf.htb: $(DOCDIR)\html\tex2rtf\t2rtf.htm
277 cd $(DOCDIR)\html\tex2rtf
278 -erase tex2rtf.zip tex2rtf.htb
279 zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk
281 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
284 $(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
294 $(WXDIR)\docs\ps\tex2rtf.ps: $(TEX2RTFDOCDIR)\tex2rtf.dvi
296 -dvips32 -o tex2rtf.ps tex2rtf
297 copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps