5 # Copyright: (c) 2002, Julian Smart
9 # Makefile : Builds documents using VC++ nmake
13 THISDIR=$(WXDIR)\contrib\docs\latex\gizmos
14 DOCDIR = $(WXDIR)\docs
17 docs: dirs winhelp html pdfrtf htb htmlhelp
18 winhelp: $(DOCDIR)/winhelp/gizmos.hlp
19 rtf: $(THISDIR)/latex/gizmos/gizmos.rtf
20 pdfrtf: $(DOCDIR)/pdf/gizmos.rtf
21 htb: $(DOCDIR)\htb\gizmos.htb
22 html: $(DOCDIR)\html\gizmos\gizmos.htm
23 htmlhelp: $(DOCDIR)\htmlhelp\gizmos.chm
26 -mkdir $(DOCDIR)\winhelp
28 -mkdir $(DOCDIR)\html\gizmos
29 -mkdir $(DOCDIR)\htmlhelp
33 $(DOCDIR)/winhelp/gizmos.hlp: $(THISDIR)/gizmos.rtf $(THISDIR)/gizmos.hpj
37 -erase $(DOCDIR)\winhelp\gizmos.hlp
38 -erase $(DOCDIR)\winhelp\gizmos.cnt
39 move gizmos.hlp $(DOCDIR)\winhelp\gizmos.hlp
40 move gizmos.cnt $(DOCDIR)\winhelp\gizmos.cnt
43 $(THISDIR)/gizmos.rtf: $(THISDIR)/classes.tex $(THISDIR)/body.tex $(THISDIR)/topics.tex $(THISDIR)/manual.tex
45 -start $(WAITFLAG) tex2rtf $(THISDIR)/manual.tex $(THISDIR)/gizmos.rtf -twice -winhelp
48 $(DOCDIR)/pdf/gizmos.rtf: $(THISDIR)/classes.tex $(THISDIR)/body.tex $(THISDIR)/topics.tex $(THISDIR)/manual.tex
50 -copy *.wmf $(DOCDIR)\pdf
51 -copy *.bmp $(DOCDIR)\pdf
52 -start $(WAITFLAG) tex2rtf $(THISDIR)/manual.tex $(DOCDIR)/pdf/gizmos.rtf -twice -rtf
55 $(DOCDIR)\html\gizmos\gizmos.htm: $(THISDIR)\classes.tex $(THISDIR)\body.tex $(THISDIR)/topics.tex $(THISDIR)\manual.tex
57 -mkdir $(DOCDIR)\html\gizmos
58 copy *.gif $(DOCDIR)\html\gizmos
59 -start $(WAITFLAG) tex2rtf $(THISDIR)\manual.tex $(DOCDIR)\html\gizmos\gizmos.htm -twice -html
60 -erase $(DOCDIR)\html\gizmos\*.con
61 -erase $(DOCDIR)\html\gizmos\*.ref
62 -erase $(THISDIR)\*.con
63 -erase $(THISDIR)\*.ref
66 $(DOCDIR)\htmlhelp\gizmos.chm : $(DOCDIR)\html\gizmos\gizmos.htm $(DOCDIR)\html\gizmos\gizmos.hhp
67 cd $(DOCDIR)\html\gizmos
70 -erase $(DOCDIR)\htmlhelp\gizmos.chm
71 move gizmos.chm ..\..\htmlhelp
74 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
75 # files, renamed to htb.
76 # This can then be used with e.g. helpview.
77 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
78 $(DOCDIR)\htb\gizmos.htb: $(DOCDIR)\html\gizmos\gizmos.htm
79 cd $(WXDIR)\docs\html\gizmos
80 -erase gizmos.zip gizmos.htb
81 zip gizmos.zip *.htm *.gif *.hhp *.hhc *.hhk
83 move gizmos.zip $(DOCDIR)\htb\gizmos.htb
86 # In order to force document reprocessing
88 -touch $(WXDIR)\docs\latex\gizmos\manual.tex
90 updatedocs: touchmanual alldocs
93 -erase $(DOCDIR)\winhelp\gizmos.hlp
94 -erase $(DOCDIR)\winhelp\gizmos.cnt
95 -erase $(DOCDIR)\html\gizmos\*.htm
96 -erase $(DOCDIR)\pdf\gizmos.rtf
97 -erase $(THISDIR)\gizmos.rtf
98 -erase $(THISDIR)\gizmos.PH
99 -erase $(DOCDIR)\htmlhelp\gizmos.chm
100 -erase $(DOCDIR)\htb\gizmos.htb
102 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
103 # Office StartUp folder, and PDFMaker should be installed.
104 #updatepdf: # touchmanual pdfrtf
105 # start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\gizmos.rtf /mGeneratePDF"