+ -if exist $(WXLIBDIR)\wx.il? $(RM) $(WXLIBDIR)\wx.tds
+ -if exist $(WXLIBDIR)\wx.il? $(RM) $(WXLIBDIR)\wx.il?
+ -if exist $(OBJ_PATH)\*.obj $(RM) $(OBJ_PATH)\*.obj
+ -if exist $(OBJ_PATH)\*.csm $(RM) $(OBJ_PATH)\*.csm
+ -if exist "$(OBJ_PATH)\wx32.#??" $(RM) "$(OBJ_PATH)\wx32.#??"
+ -if exist *.pch $(RM) *.pch
+ -if exist *.csm $(RM) *.csm
+ -if exist *.obj $(RM) *.obj
+ -if exist "wx32.#??" $(RM) "wx32.#??"
+
+cleanall: clean cleancfg
+
+
+# Making documents
+docs: allhlp allhtml allpdfrtf
+alldocs: docs
+hlp: wxhlp portinghlp
+wxhlp: $(DOCDIR)/winhelp/wx.hlp
+refhlp: $(DOCDIR)/winhelp/techref.hlp
+rtf: $(DOCDIR)/winhelp/wx.rtf
+pdfrtf: $(DOCDIR)/pdf/wx.rtf
+refpdfrtf: $(DOCDIR)/pdf/techref.rtf
+html: wxhtml portinghtml
+wxhtml: $(DOCDIR)\html\wx\wx.htm
+htmlhelp: $(DOCDIR)\html\wx\wx.chm
+ps: wxps referencps
+wxps: $(WXDIR)\docs\ps\wx.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
+ 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
+ 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
+ cd $(WXDIR)\utils\dialoged\src
+ ${MAKE} -f makefile.b32 ps
+ cd $(THISDIR)
+
+allpdfrtf: pdfrtf portingpdfrtf
+ 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
+ -if exist wx.ph $(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
+ -if exist porting.ph $(RM) porting.ph
+ hc porting
+ move porting.hlp $(DOCDIR)\winhelp\porting.hlp
+ move porting.cnt $(DOCDIR)\winhelp\porting.cnt
+ cd $(THISDIR)
+
+$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
+ cd $(DOCDIR)/latex/techref
+ -if exist techref.ph $(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/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/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
+ -if exist $(DOCDIR)\html\wx\*.con $(RM) $(DOCDIR)\html\wx\*.con
+ -if exist $(DOCDIR)\html\wx\*.ref $(RM) $(DOCDIR)\html\wx\*.ref
+ -if exist $(DOCDIR)\latex\wx\*.con $(RM) $(DOCDIR)\latex\wx\*.con
+ -if exist $(DOCDIR)\latex\wx\*.ref $(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
+ -if exist $(DOCDIR)\html\porting\*.con $(RM) $(DOCDIR)\html\porting\*.con
+ -if exist $(DOCDIR)\html\porting\*.ref $(RM) $(DOCDIR)\html\porting\*.ref
+ -if exist $(DOCDIR)\latex\porting\*.con $(RM) $(DOCDIR)\latex\porting\*.con
+ -if exist $(DOCDIR)\latex\porting\*.ref $(RM) $(DOCDIR)\latex\porting\*.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:
+!if "$(TM)"==""
+ @echo Error in Environment!
+ @echo Please set TM in the environment to the directory containing tmake binaries
+ @echo eg set TM=c:\wx\tmake\bin
+!else
+ cd $(WXWIN)\distrib\msw\tmake
+ perl $(TM)\tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
+ copy makefile.$(MFTYPE) $(WXWIN)\src\msw
+!endif