6 # Copyright: (c) 1997, Julian Smart
9 THISDIR=$(WXWIN)\build\script
10 DOCDIR = $(WXDIR)\docs
14 docs: wxhlp rtf pdfrtf wxhtml htmlhelp htb tex2rtf
17 wxhlp: $(DOCDIR)/winhelp/wx.hlp
18 rtf: $(DOCDIR)/latex/wx/wx.rtf
19 pdfrtf: $(DOCDIR)/pdf/wx.rtf
21 htb: $(DOCDIR)\htb\wx.htb
22 wxhtml: $(DOCDIR)\html\wx\wx_contents.html
23 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
26 cd $(WXWIN)\utils\tex2rtf\docs
31 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
33 -mkdir $(DOCDIR)\winhelp
36 -erase $(DOCDIR)\winhelp\wx.hlp
37 -erase $(DOCDIR)\winhelp\wx.cnt
38 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
39 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
42 $(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
44 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
47 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
50 -copy *.wmf $(DOCDIR)\pdf
51 -copy *.bmp $(DOCDIR)\pdf
52 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
55 # This target does two sets of HTML: one using a style sheet, for
56 # the purposes of the CHM file, and one without.
57 $(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
59 -mkdir $(DOCDIR)\html\wx
60 copy *.gif $(DOCDIR)\html\wx
61 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
62 -mkdir $(DOCDIR)\mshtml
63 -mkdir $(DOCDIR)\mshtml\wx
64 copy *.gif $(DOCDIR)\mshtml\wx
65 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\mshtml\wx\wx.htm -twice -html -macros $(DOCDIR)\latex\wx\tex2rtf_css.ini
66 -erase $(DOCDIR)\html\wx\*.con
67 -erase $(DOCDIR)\html\wx\*.ref
68 -erase $(DOCDIR)\latex\wx\*.con
69 -erase $(DOCDIR)\latex\wx\*.ref
72 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx_contents.html $(DOCDIR)\mshtml\wx\wx.hhp
73 cd $(DOCDIR)\mshtml\wx
74 copy $(DOCDIR)\latex\wx\wx.css .
77 -erase $(DOCDIR)\htmlhelp\wx.chm
78 move wx.chm ..\..\htmlhelp
83 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
84 # files, renamed to htb.
85 # This can then be used with e.g. helpview.
86 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
87 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx_contents.html
88 cd $(WXDIR)\docs\html\wx
90 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
92 move wx.zip $(DOCDIR)\htb\wx.htb
95 # In order to force document reprocessing
97 -touch $(WXDIR)\docs\latex\wx\manual.tex
99 updatedocs: touchmanual alldocs
102 -erase $(DOCDIR)\winhelp\*.hlp
103 -erase $(DOCDIR)\winhelp\*.cnt
104 -erase $(DOCDIR)\html\wx\*.html
105 -erase $(DOCDIR)\mshtml\wx\*.html
106 -erase $(DOCDIR)\mshtml\wx\*.gif
107 -erase $(DOCDIR)\mshtml\wx\wx.*
108 -erase $(DOCDIR)\pdf\wx.rtf
109 -erase $(DOCDIR)\latex\wx\wx.rtf
110 -erase $(DOCDIR)\latex\wx\WX.PH
111 -erase $(DOCDIR)\htmlhelp\wx.chm
112 -erase $(DOCDIR)\htb\wx.htb
115 # Only clean the online help, not PDF RTF
117 -erase $(DOCDIR)\winhelp\wx.hlp
118 -erase $(DOCDIR)\winhelp\wx.cnt
119 -erase $(DOCDIR)\html\wx\*.html
120 -erase $(DOCDIR)\latex\wx\wx.rtf
121 -erase $(DOCDIR)\latex\wx\WX.PH
122 -erase $(DOCDIR)\latex\wx\wx.hpj
123 -erase $(DOCDIR)\htmlhelp\wx.chm
124 -erase $(DOCDIR)\mshtml\wx\*.html
125 -erase $(DOCDIR)\htb\wx.htb