5 # Copyright: (c) 2000, Julian Smart
9 # Makefile : Builds wxWindows book
11 THISDIR=$(WXWIN)\src\msw
15 DOCDIR = $(WXDIR)\docs
20 docs: bookhlp bookhtml bookpdfrtf htb htmlhelp
23 bookhlp: $(DOCDIR)/winhelp/book.hlp
24 rtf: $(DOCDIR)/winhelp/book.rtf
25 pdfrtf: $(DOCDIR)/pdf/book.rtf
27 htb: $(DOCDIR)\htb\book.htb
28 bookhtml: $(DOCDIR)\html\book\book.htm
29 htmlhelp: $(DOCDIR)\htmlhelp\book.chm
30 bookps: $(WXDIR)\docs\ps\book.ps
32 $(DOCDIR)/winhelp/book.hlp: $(DOCDIR)/latex/book/book.rtf $(DOCDIR)/latex/book/book.hpj
33 cd $(DOCDIR)/latex/book
36 move book.hlp $(DOCDIR)\winhelp\book.hlp
37 move book.cnt $(DOCDIR)\winhelp\book.cnt
40 $(DOCDIR)/latex/book/book.rtf: $(DOCDIR)/latex/book/book.tex
41 cd $(DOCDIR)\latex\book
42 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/book/book.tex $(DOCDIR)/latex/book/book.rtf -twice -winhelp
45 $(DOCDIR)/pdf/book.rtf: $(DOCDIR)/latex/book/book.tex
46 cd $(DOCDIR)\latex\book
47 -copy *.wmf $(DOCDIR)\pdf
48 -copy *.bmp $(DOCDIR)\pdf
49 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/book/book.tex $(DOCDIR)/pdf/book.rtf -twice -rtf
52 $(DOCDIR)\html\book\book.htm: $(DOCDIR)\latex\book\book.tex
53 cd $(DOCDIR)\latex\book
54 -mkdir $(DOCDIR)\html\book
55 copy *.gif $(DOCDIR)\html\book
56 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\book\book.tex $(DOCDIR)\html\book\book.htm -twice -html
57 -erase $(DOCDIR)\html\book\*.con
58 -erase $(DOCDIR)\html\book\*.ref
59 -erase $(DOCDIR)\latex\book\*.con
60 -erase $(DOCDIR)\latex\book\*.ref
63 $(DOCDIR)\htmlhelp\book.chm : $(DOCDIR)\html\book\book.htm $(DOCDIR)\html\book\book.hhp
64 cd $(DOCDIR)\html\book
67 -erase ..\..\htmlhelp\book.chm
68 move book.chm ..\..\htmlhelp
71 $(WXDIR)\docs\latex\book\book.dvi: $(DOCDIR)/latex/book/body.tex $(DOCDIR)/latex/book/book.tex
72 cd $(WXDIR)\docs\latex\book
81 $(WXDIR)\docs\ps\book.ps: $(WXDIR)\docs\latex\book\book.dvi
82 cd $(WXDIR)\docs\latex\book
83 -dvips32 -o book.ps book
84 move book.ps $(WXDIR)\docs\ps\book.ps
87 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
88 # files, renamed to htb.
89 # This can then be used with e.g. helpview.
90 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
91 $(DOCDIR)\htb\book.htb: $(DOCDIR)\html\book\book.htm
92 cd $(WXDIR)\docs\html\book
93 -erase book.zip book.htb
94 zip book.zip *.htm *.gif *.hhp *.hhc *.hhk
96 move book.zip $(DOCDIR)\htb\book.htb
99 # In order to force document reprocessing
101 -touch $(WXDIR)\docs\latex\book\book.tex
103 updatedocs: touchbook alldocs
106 -erase $(DOCDIR)\html\book\*.htm
107 -erase $(DOCDIR)\pdf\book.rtf
108 -erase $(DOCDIR)\latex\book\book.rtf
109 -erase $(DOCDIR)\htmlhelp\book.chm
110 -erase $(DOCDIR)\htb\book.htb
112 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
113 # Office StartUp folder, and PDFMaker should be installed.
114 updatepdf: # touchbook pdfrtf
115 start $(WAITFLAG) "winword d:\book2\bookWindows\docs\latex\pdf\book.rtf /mGeneratePDF"