]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/makefile.vc
Misc documentation fixes
[wxWidgets.git] / distrib / msw / makefile.vc
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 wxWindows 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.htm
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 -erase wx.ph
93 hc wx
94 -erase $(DOCDIR)\winhelp\wx.hlp
95 -erase $(DOCDIR)\winhelp\wx.cnt
96 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
97 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
98 cd $(THISDIR)
99
100 $(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
101 cd $(DOCDIR)\latex\wx
102 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
103 cd $(THISDIR)
104
105 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
106 cd $(DOCDIR)\latex\wx
107 -copy *.wmf $(DOCDIR)\pdf
108 -copy *.bmp $(DOCDIR)\pdf
109 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
110 cd $(THISDIR)
111
112 # This target does two sets of HTML: one using a style sheet, for
113 # the purposes of the CHM file, and one without.
114 $(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
115 cd $(DOCDIR)\latex\wx
116 -mkdir $(DOCDIR)\html\wx
117 copy *.gif $(DOCDIR)\html\wx
118 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
119 -mkdir $(DOCDIR)\mshtml
120 -mkdir $(DOCDIR)\mshtml\wx
121 copy *.gif $(DOCDIR)\mshtml\wx
122 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\mshtml\wx\wx.htm -twice -html -macros $(DOCDIR)\latex\wx\tex2rtf_css.ini
123 -erase $(DOCDIR)\html\wx\*.con
124 -erase $(DOCDIR)\html\wx\*.ref
125 -erase $(DOCDIR)\latex\wx\*.con
126 -erase $(DOCDIR)\latex\wx\*.ref
127 cd $(THISDIR)
128
129 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\mshtml\wx\wx.htm $(DOCDIR)\mshtml\wx\wx.hhp
130 cd $(DOCDIR)\mshtml\wx
131 copy $(DOCDIR)\latex\wx\wx.css .
132 -hhc wx.hhp
133 -mkdir ..\..\htmlhelp
134 -erase $(DOCDIR)\htmlhelp\wx.chm
135 move wx.chm ..\..\htmlhelp
136 cd $(THISDIR)
137
138 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
139 cd $(WXDIR)\docs\latex\wx
140 -latex manual
141 -latex manual
142 -makeindx manual
143 -bibtex manual
144 -latex manual
145 -latex manual
146 cd $(THISDIR)
147
148 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
149 cd $(WXDIR)\docs\latex\wx
150 -dvips32 -o wx.ps manual
151 move wx.ps $(WXDIR)\docs\ps\wx.ps
152 cd $(THISDIR)
153
154 $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
155 cd $(WXDIR)\docs\latex\wx
156 -latex referenc
157 -latex referenc
158 -makeindx referenc
159 -bibtex referenc
160 -latex referenc
161 -latex referenc
162 cd $(THISDIR)
163
164 $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
165 cd $(WXDIR)\docs\latex\wx
166 -dvips32 -o referenc.ps referenc
167 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
168 cd $(THISDIR)
169
170 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
171 # files, renamed to htb.
172 # This can then be used with e.g. helpview.
173 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
174 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
175 cd $(WXDIR)\docs\html\wx
176 -erase wx.zip wx.htb
177 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
178 -mkdir $(DOCDIR)\htb
179 move wx.zip $(DOCDIR)\htb\wx.htb
180 cd $(THISDIR)
181
182 # In order to force document reprocessing
183 touchmanual:
184 -touch $(WXDIR)\docs\latex\wx\manual.tex
185
186 updatedocs: touchmanual alldocs
187
188 cleandocs:
189 -erase $(DOCDIR)\winhelp\wx.hlp
190 -erase $(DOCDIR)\winhelp\wx.cnt
191 -erase $(DOCDIR)\html\wx\*.htm
192 -erase $(DOCDIR)\pdf\wx.rtf
193 -erase $(DOCDIR)\latex\wx\wx.rtf
194 -erase $(DOCDIR)\latex\wx\WX.PH
195 -erase $(DOCDIR)\htmlhelp\wx.chm
196 -erase $(DOCDIR)\htb\wx.htb
197
198 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
199 # Office StartUp folder, and PDFMaker should be installed.
200 updatepdf: # touchmanual pdfrtf
201 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
202
203
204 MFTYPE=vc
205 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
206 cd $(WXWIN)\distrib\msw\tmake
207 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
208 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
209