]> git.saurik.com Git - wxWidgets.git/blob - build/script/makedocs.vc
fix default values after types were changed
[wxWidgets.git] / build / script / makedocs.vc
1 # File: makedocs.vc
2 #
3 # Author: Julian Smart
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1997, Julian Smart
7
8 WXDIR=$(WXWIN)
9 THISDIR=$(WXWIN)\build\script
10 DOCDIR = $(WXDIR)\docs
11 WAITFLAG=/w
12
13 # Making documents
14 docs: wxhlp rtf pdfrtf wxhtml htmlhelp htb tex2rtf
15 alldocs: docs
16 hlp: wxhlp
17 wxhlp: $(DOCDIR)/winhelp/wx.hlp
18 rtf: $(DOCDIR)/latex/wx/wx.rtf
19 pdfrtf: $(DOCDIR)/pdf/wx.rtf
20 html: wxhtml
21 htb: $(DOCDIR)\htb\wx.htb
22 wxhtml: $(DOCDIR)\html\wx\wx_contents.html
23 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
24
25 tex2rtf:
26 cd $(WXWIN)\utils\tex2rtf\docs
27 nmake -f makefile.vc
28 cd $(THISDIR)
29
30
31 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
32 cd $(DOCDIR)/latex/wx
33 -mkdir $(DOCDIR)\winhelp
34 -erase wx.ph
35 hcw /c /e wx
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
40 cd $(THISDIR)
41
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
43 cd $(DOCDIR)\latex\wx
44 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
45 cd $(THISDIR)
46
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
48 cd $(DOCDIR)\latex\wx
49 -mkdir $(DOCDIR)\pdf
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
53 cd $(THISDIR)
54
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
58 cd $(DOCDIR)\latex\wx
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
70 cd $(THISDIR)
71
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 .
75 -hhc wx.hhp
76 -mkdir ..\..\htmlhelp
77 -erase $(DOCDIR)\htmlhelp\wx.chm
78 move wx.chm ..\..\htmlhelp
79 cd $(THISDIR)
80
81
82
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
89 -erase wx.zip wx.htb
90 zip wx.zip *.html *.gif *.hhp *.hhc *.hhk
91 -mkdir $(DOCDIR)\htb
92 move wx.zip $(DOCDIR)\htb\wx.htb
93 cd $(THISDIR)
94
95 # In order to force document reprocessing
96 touchmanual:
97 -touch $(WXDIR)\docs\latex\wx\manual.tex
98
99 updatedocs: touchmanual alldocs
100
101 cleandocs:
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
113
114
115 # Only clean the online help, not PDF RTF
116 cleanonlinehelp:
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
126
127
128