| 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 wxWidgets 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_contents.html |
| 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 | -mkdir $(DOCDIR)\winhelp |
| 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 |
| 108 | -mkdir $(DOCDIR)\pdf |
| 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. |
| 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 |
| 129 | cd $(THISDIR) |
| 130 | |
| 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 . |
| 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. |
| 176 | $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html |
| 177 | cd $(WXDIR)\docs\html\wx |
| 178 | -erase wx.zip wx.htb |
| 179 | zip wx.zip *.html *.gif *.hhp *.hhc *.hhk |
| 180 | -mkdir $(DOCDIR)\htb |
| 181 | move wx.zip $(DOCDIR)\htb\wx.htb |
| 182 | cd $(THISDIR) |
| 183 | |
| 184 | # In order to force document reprocessing |
| 185 | touchmanual: |
| 186 | -touch $(WXDIR)\docs\latex\wx\manual.tex |
| 187 | |
| 188 | updatedocs: touchmanual alldocs |
| 189 | |
| 190 | cleandocs: |
| 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 |
| 199 | |
| 200 | # Only clean the online help, not PDF RTF |
| 201 | cleanonlinehelp: |
| 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 |
| 211 | |
| 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" |
| 216 | |
| 217 | |
| 218 | MFTYPE=vc |
| 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 |
| 223 | |
| 224 | ###################### |
| 225 | # Tex2RTF |
| 226 | ###################### |
| 227 | |
| 228 | TEX2RTFDOCDIR=$(WXDIR)\utils\tex2rtf\docs |
| 229 | |
| 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 |
| 236 | |
| 237 | $(DOCDIR)\winhelp\tex2rtf.hlp: $(TEX2RTFDOCDIR)\tex2rtf.rtf $(TEX2RTFDOCDIR)\tex2rtf.hpj |
| 238 | cd $(TEX2RTFDOCDIR) |
| 239 | -erase tex2rtf.ph |
| 240 | hc tex2rtf |
| 241 | copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp |
| 242 | copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt |
| 243 | cd $(THISDIR) |
| 244 | |
| 245 | $(TEX2RTFDOCDIR)\tex2rtf.rtf: $(DOCSOURCES) |
| 246 | cd $(TEX2RTFDOCDIR) |
| 247 | -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(TEX2RTFDOCDIR)\tex2rtf.rtf -twice -winhelp |
| 248 | cd $(THISDIR) |
| 249 | |
| 250 | $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES) |
| 251 | cd $(TEX2RTFDOCDIR) |
| 252 | -copy *.wmf $(DOCDIR)\pdf |
| 253 | -copy *.bmp $(DOCDIR)\pdf |
| 254 | -start /w tex2rtf $(TEX2RTFDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf |
| 255 | cd $(THISDIR) |
| 256 | |
| 257 | $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES) |
| 258 | cd $(TEX2RTFDOCDIR) |
| 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 |
| 264 | cd $(THISDIR) |
| 265 | |
| 266 | $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp |
| 267 | cd $(DOCDIR)\html\tex2rtf |
| 268 | -hhc t2rtf.hhp |
| 269 | move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm |
| 270 | cd $(THISDIR) |
| 271 | |
| 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 |
| 280 | -mkdir $(DOCDIR)\htb |
| 281 | move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb |
| 282 | cd $(THISDIR) |
| 283 | |
| 284 | $(TEX2RTFDOCDIR)\tex2rtf.dvi: $(DOCSOURCES) |
| 285 | cd $(TEX2RTFDOCDIR) |
| 286 | -latex tex2rtf |
| 287 | -latex tex2rtf |
| 288 | -makeindx tex2rtf |
| 289 | -bibtex tex2rtf |
| 290 | -latex tex2rtf |
| 291 | -latex tex2rtf |
| 292 | cd $(THISDIR) |
| 293 | |
| 294 | $(WXDIR)\docs\ps\tex2rtf.ps: $(TEX2RTFDOCDIR)\tex2rtf.dvi |
| 295 | cd $(TEX2RTFDOCDIR) |
| 296 | -dvips32 -o tex2rtf.ps tex2rtf |
| 297 | copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps |
| 298 | cd $(THISDIR) |
| 299 | |
| 300 | |