5 # Copyright: (c) 2002, Julian Smart
9 # Makefile : Builds documents using VC++ nmake
13 THISDIR=$(WXDIR)\contrib\docs\latex\fl
14 DOCDIR = $(WXDIR)\docs
17 docs: dirs winhelp html pdfrtf htb htmlhelp
18 winhelp: $(DOCDIR)/winhelp/fl.hlp
19 rtf: $(THISDIR)/latex/fl/fl.rtf
20 pdfrtf: $(DOCDIR)/pdf/fl.rtf
21 htb: $(DOCDIR)\htb\fl.htb
22 html: $(DOCDIR)\html\fl\fl.htm
23 htmlhelp: $(DOCDIR)\htmlhelp\fl.chm
26 -mkdir $(DOCDIR)\winhelp
28 -mkdir $(DOCDIR)\html\fl
29 -mkdir $(DOCDIR)\htmlhelp
33 $(DOCDIR)/winhelp/fl.hlp: $(THISDIR)/fl.rtf $(THISDIR)/fl.hpj
37 -erase $(DOCDIR)\winhelp\fl.hlp
38 -erase $(DOCDIR)\winhelp\fl.cnt
39 move fl.hlp $(DOCDIR)\winhelp\fl.hlp
40 move fl.cnt $(DOCDIR)\winhelp\fl.cnt
43 $(THISDIR)/fl.rtf: $(THISDIR)/classes.tex $(THISDIR)/body.tex $(THISDIR)/topics.tex $(THISDIR)/manual.tex
45 -start $(WAITFLAG) tex2rtf $(THISDIR)/manual.tex $(THISDIR)/fl.rtf -twice -winhelp
48 $(DOCDIR)/pdf/fl.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/fl.rtf -twice -rtf
55 $(DOCDIR)\html\fl\fl.htm: $(THISDIR)\classes.tex $(THISDIR)\body.tex $(THISDIR)/topics.tex $(THISDIR)\manual.tex
57 -mkdir $(DOCDIR)\html\fl
58 copy *.gif $(DOCDIR)\html\fl
59 -start $(WAITFLAG) tex2rtf $(THISDIR)\manual.tex $(DOCDIR)\html\fl\fl.htm -twice -html
60 -erase $(DOCDIR)\html\fl\*.con
61 -erase $(DOCDIR)\html\fl\*.ref
62 -erase $(THISDIR)\*.con
63 -erase $(THISDIR)\*.ref
66 $(DOCDIR)\htmlhelp\fl.chm : $(DOCDIR)\html\fl\fl.htm $(DOCDIR)\html\fl\fl.hhp
70 -erase $(DOCDIR)\htmlhelp\fl.chm
71 move fl.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\fl.htb: $(DOCDIR)\html\fl\fl.htm
79 cd $(WXDIR)\docs\html\fl
81 zip fl.zip *.htm *.gif *.hhp *.hhc *.hhk
83 move fl.zip $(DOCDIR)\htb\fl.htb
86 # In order to force document reprocessing
88 -touch $(WXDIR)\contrib\docs\latex\fl\manual.tex
90 updatedocs: touchmanual alldocs
93 -erase $(DOCDIR)\winhelp\fl.hlp
94 -erase $(DOCDIR)\winhelp\fl.cnt
95 -erase $(DOCDIR)\html\fl\*.htm
96 -erase $(DOCDIR)\pdf\fl.rtf
97 -erase $(THISDIR)\fl.rtf
98 -erase $(THISDIR)\fl.PH
99 -erase $(DOCDIR)\htmlhelp\fl.chm
100 -erase $(DOCDIR)\htb\fl.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\fl.rtf /mGeneratePDF"