5 # Copyright: (c) 2000, Julian Smart
9 # Makefile : Builds wxWindows book
11 THISDIR=$(WXWIN)\src\msw
13 WXDIR=d:\wx2\wxWindows
15 DOCDIR = $(WXDIR)\docs
18 docs: bookhlp bookhtml bookpdfrtf htb htmlhelp
21 bookhlp: $(DOCDIR)/winhelp/book.hlp
22 rtf: $(DOCDIR)/winhelp/book.rtf
23 pdfrtf: $(DOCDIR)/pdf/book.rtf
25 htb: $(DOCDIR)\htb\book.htb
26 bookhtml: $(DOCDIR)\html\book\book.htm
27 htmlhelp: $(DOCDIR)\htmlhelp\book.chm
28 bookps: $(WXDIR)\docs\ps\book.ps
30 $(DOCDIR)/winhelp/book.hlp: $(DOCDIR)/latex/book/book.rtf $(DOCDIR)/latex/book/book.hpj
31 cd $(DOCDIR)/latex/book
34 move book.hlp $(DOCDIR)\winhelp\book.hlp
35 move book.cnt $(DOCDIR)\winhelp\book.cnt
38 $(DOCDIR)/latex/book/book.rtf: $(DOCDIR)/latex/book/book.tex
39 cd $(DOCDIR)\latex\book
40 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/book/book.tex $(DOCDIR)/latex/book/book.rtf -twice -winhelp
43 $(DOCDIR)/pdf/book.rtf: $(DOCDIR)/latex/book/book.tex
44 cd $(DOCDIR)\latex\book
45 -copy *.wmf $(DOCDIR)\pdf
46 -copy *.bmp $(DOCDIR)\pdf
47 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/book/book.tex $(DOCDIR)/pdf/book.rtf -twice -rtf
50 $(DOCDIR)\html\book\book.htm: $(DOCDIR)\latex\book\book.tex
51 cd $(DOCDIR)\latex\book
52 -mkdir $(DOCDIR)\html\book
53 copy *.gif $(DOCDIR)\html\book
54 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\book\book.tex $(DOCDIR)\html\book\book.htm -twice -html
55 -erase $(DOCDIR)\html\book\*.con
56 -erase $(DOCDIR)\html\book\*.ref
57 -erase $(DOCDIR)\latex\book\*.con
58 -erase $(DOCDIR)\latex\book\*.ref
61 $(DOCDIR)\htmlhelp\book.chm : $(DOCDIR)\html\book\book.htm $(DOCDIR)\html\book\book.hhp
62 cd $(DOCDIR)\html\book
65 move book.chm ..\..\htmlhelp
68 $(WXDIR)\docs\latex\book\book.dvi: $(DOCDIR)/latex/book/body.tex $(DOCDIR)/latex/book/book.tex
69 cd $(WXDIR)\docs\latex\book
78 $(WXDIR)\docs\ps\book.ps: $(WXDIR)\docs\latex\book\book.dvi
79 cd $(WXDIR)\docs\latex\book
80 -dvips32 -o book.ps book
81 move book.ps $(WXDIR)\docs\ps\book.ps
84 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
85 # files, renamed to htb.
86 # This can then be used with e.g. helpview.
87 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
88 $(DOCDIR)\htb\book.htb: $(DOCDIR)\html\book\book.htm
89 cd $(WXDIR)\docs\html\book
90 -erase /Y book.zip book.htb
91 zip32 book.zip *.htm *.gif *.hhp *.hhc *.hhk
93 move book.zip $(DOCDIR)\htb\book.htb
96 # In order to force document reprocessing
98 -touch $(WXDIR)\docs\latex\book\book.tex
100 updatedocs: touchbook alldocs
103 -erase /Y $(DOCDIR)\html\book\book.htm
104 -erase /Y $(DOCDIR)\pdf\book.rtf
105 -erase /Y $(DOCDIR)\latex\book\book.rtf
106 -erase /Y $(DOCDIR)\htmlhelp\book.chm
107 -erase /Y $(DOCDIR)\htb\book.htb
109 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
110 # Office StartUp folder, and PDFMaker should be installed.
111 updatepdf: # touchbook pdfrtf
112 start $(WAITFLAG) "winword d:\book2\bookWindows\docs\latex\pdf\book.rtf /mGeneratePDF"