+# Making documents
+docs: allhlp allhtml allpdfrtf
+alldocs: docs
+hlp: wxhlp portinghlp
+wxhlp: $(DOCDIR)/winhelp/wx.hlp
+prophlp: $(DOCDIR)/winhelp/prop.hlp
+refhlp: $(DOCDIR)/winhelp/techref.hlp
+rtf: $(DOCDIR)/winhelp/wx.rtf
+proprtf: $(DOCDIR)/winhelp/prop.rtf
+pdfrtf: $(DOCDIR)/pdf/wx.rtf
+proppdfrtf: $(DOCDIR)/pdf/prop.rtf
+refpdfrtf: $(DOCDIR)/pdf/techref.rtf
+html: wxhtml portinghtml
+wxhtml: $(DOCDIR)\html\wx\wx.htm
+htmlhelp: $(DOCDIR)\html\wx\wx.chm
+prophtml: $(DOCDIR)\html\proplist\prop.htm
+ps: wxps referencps
+wxps: $(WXDIR)\docs\ps\wx.ps
+propps: $(WXDIR)\docs\ps\prop.ps
+referencps: $(WXDIR)\docs\ps\referenc.ps
+
+portinghtml: $(DOCDIR)\html\porting\port.htm
+portingrtf: $(DOCDIR)/winhelp/porting.rtf
+portinghlp: $(DOCDIR)/winhelp/porting.hlp
+portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
+portingps: $(WXDIR)\docs\ps\porting.ps
+
+allhlp: wxhlp portinghlp prophlp
+ cd $(WXDIR)\utils\dialoged\src
+ make -f makefile.b32 hlp
+ cd $(THISDIR)
+
+# cd $(WXDIR)\utils\wxhelp\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\tex2rtf\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\wxgraph\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\wxchart\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\wxtree\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\wxbuild\src
+# make -f makefile.b32 hlp
+# cd $(WXDIR)\utils\wxgrid\src
+# make -f makefile.b32 hlp
+
+allhtml: wxhtml portinghtml prophtml
+ cd $(WXDIR)\utils\dialoged\src
+ make -f makefile.b32 html
+ cd $(THISDIR)
+
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\dialoged\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\hytext\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\wxhelp\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\tex2rtf\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\wxgraph\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\wxchart\src
+# make -f makefile.b32 html
+# cd $(WXDIR)\utils\wxtree\src
+# make -f makefile.b32 html
+
+allps: wxps referencps portingps propps
+ cd $(WXDIR)\utils\dialoged\src
+ make -f makefile.b32 ps
+ cd $(THISDIR)
+
+allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
+ cd $(WXDIR)\utils\dialoged\src
+ make -f makefile.b32 pdfrtf
+ cd $(THISDIR)
+
+# cd $(WXDIR)\utils\wxhelp\src
+# make -f makefile.b32 ps
+# cd $(WXDIR)\utils\tex2rtf\src
+# make -f makefile.b32 ps
+# cd $(WXDIR)\utils\wxgraph\src
+# make -f makefile.b32 ps
+# cd $(WXDIR)\utils\wxchart\src
+# make -f makefile.b32 ps
+# cd $(WXDIR)\utils\wxtree\src
+# make -f makefile.b32 ps
+# cd $(THISDIR)
+
+$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
+ cd $(DOCDIR)/latex/wx
+ -$(RM) wx.ph
+ hc wx
+ move wx.hlp $(DOCDIR)\winhelp\wx.hlp
+ move wx.cnt $(DOCDIR)\winhelp\wx.cnt
+ cd $(THISDIR)
+
+$(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
+ cd $(DOCDIR)/latex/porting
+ -$(RM) porting.ph
+ hc porting
+ move porting.hlp $(DOCDIR)\winhelp\porting.hlp
+ move porting.cnt $(DOCDIR)\winhelp\porting.cnt
+ cd $(THISDIR)
+
+$(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
+ cd $(DOCDIR)/latex/proplist
+ -$(RM) prop.ph
+ hc prop
+ move prop.hlp $(DOCDIR)\winhelp\prop.hlp
+ move prop.cnt $(DOCDIR)\winhelp\prop.cnt
+ cd $(THISDIR)
+
+$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
+ cd $(DOCDIR)/latex/techref
+ -$(RM) techref.ph
+ hc techref
+ move techref.hlp $(DOCDIR)\winhelp\techref.hlp
+ move techref.cnt $(DOCDIR)\winhelp\techref.cnt
+ cd $(THISDIR)
+
+$(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
+ cd $(DOCDIR)\latex\wx
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
+ cd $(THISDIR)
+
+$(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
+ cd $(DOCDIR)\latex\porting
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
+ cd $(THISDIR)
+
+$(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
+ cd $(DOCDIR)\latex\proplist
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
+ cd $(THISDIR)
+
+$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
+ cd $(DOCDIR)\latex\techref
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
+ cd $(THISDIR)
+
+$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
+ cd $(DOCDIR)\latex\wx
+ -copy *.wmf $(DOCDIR)\pdf
+ -copy *.bmp $(DOCDIR)\pdf
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
+ cd $(THISDIR)
+
+$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
+ cd $(DOCDIR)\latex\porting
+ -copy *.wmf $(DOCDIR)\pdf
+ -copy *.bmp $(DOCDIR)\pdf
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
+ cd $(THISDIR)
+
+$(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
+ cd $(DOCDIR)\latex\proplist
+ -copy *.wmf $(DOCDIR)\pdf
+ -copy *.bmp $(DOCDIR)\pdf
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
+ cd $(THISDIR)
+
+$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
+ cd $(DOCDIR)\latex\techref
+ -copy *.wmf $(DOCDIR)\pdf
+ -copy *.bmp $(DOCDIR)\pdf
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
+ cd $(THISDIR)
+
+$(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
+ cd $(DOCDIR)\latex\wx
+ -mkdir $(DOCDIR)\html\wx
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
+ -$(RM) $(DOCDIR)\html\wx\*.con
+ -$(RM) $(DOCDIR)\html\wx\*.ref
+ -$(RM) $(DOCDIR)\latex\wx\*.con
+ -$(RM) $(DOCDIR)\latex\wx\*.ref
+ cd $(THISDIR)
+
+$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
+ cd $(DOCDIR)\html\wx
+ -hhc wx.hhp
+ cd $(THISDIR)
+
+
+$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
+ cd $(DOCDIR)\latex\porting
+ -mkdir $(DOCDIR)\html\porting
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
+ -$(RM) $(DOCDIR)\html\porting\*.con
+ -$(RM) $(DOCDIR)\html\porting\*.ref
+ -$(RM) $(DOCDIR)\latex\porting\*.con
+ -$(RM) $(DOCDIR)\latex\porting\*.ref
+ cd $(THISDIR)
+
+$(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex
+ cd $(DOCDIR)\latex\proplist
+ -mkdir $(DOCDIR)\html\proplist
+ -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
+ -$(RM) $(DOCDIR)\html\proplist\*.con
+ -$(RM) $(DOCDIR)\html\proplist\*.ref
+ -$(RM) $(DOCDIR)\latex\proplist\*.con
+ -$(RM) $(DOCDIR)\latex\proplist\*.ref
+ cd $(THISDIR)
+
+$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
+ cd $(WXDIR)\docs\latex\wx
+ -latex manual
+ -latex manual
+ -makeindx manual
+ -bibtex manual
+ -latex manual
+ -latex manual
+ cd $(THISDIR)
+
+$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
+ cd $(WXDIR)\docs\latex\porting
+ -latex porting
+ -latex porting
+ -makeindx porting
+ -bibtex porting
+ -latex porting
+ -latex porting
+ cd $(THISDIR)
+
+$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
+ cd $(WXDIR)\docs\latex\wx
+ -dvips32 -o wx.ps manual
+ move wx.ps $(WXDIR)\docs\ps\wx.ps
+ cd $(THISDIR)
+
+$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
+ cd $(WXDIR)\docs\latex\porting
+ -dvips32 -o porting.ps porting
+ move porting.ps $(WXDIR)\docs\ps\porting.ps
+ cd $(THISDIR)
+
+$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
+ cd $(WXDIR)\docs\latex\wx
+ -latex referenc
+ -latex referenc
+ -makeindx referenc
+ -bibtex referenc
+ -latex referenc
+ -latex referenc
+ cd $(THISDIR)
+
+$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
+ cd $(WXDIR)\docs\latex\wx
+ -dvips32 -o referenc.ps referenc
+ move referenc.ps $(WXDIR)\docs\ps\referenc.ps
+ cd $(THISDIR)
+
+# In order to force document reprocessing
+touchmanual:
+ -touch $(WXDIR)\docs\latex\wx\manual.tex
+
+updatedocs: touchmanual alldocs
+
+# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
+# Office StartUp folder, and PDFMaker should be installed.
+updatepdf: # touchmanual pdfrtf
+ start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
+
+
+MFTYPE=b32
+# Can't use this or we'll have to distribute all tmake files with wxWindows
+# makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
+
+self:
+ cd $(WXWIN)\distrib\msw\tmake
+ tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
+ copy makefile.$(MFTYPE) $(WXWIN)\src\msw
+