5 # Copyright: (c) 1997, Julian Smart
9 # Makefile : Builds wxWindows 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.htm
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
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
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
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
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
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 .
133 -mkdir ..\..\htmlhelp
134 -erase $(DOCDIR)\htmlhelp\wx.chm
135 move wx.chm ..\..\htmlhelp
138 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
139 cd $(WXDIR)\docs\latex\wx
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
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
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
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
177 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
179 move wx.zip $(DOCDIR)\htb\wx.htb
182 # In order to force document reprocessing
184 -touch $(WXDIR)\docs\latex\wx\manual.tex
186 updatedocs: touchmanual alldocs
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
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"
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