7 DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\$(NAME)
9 THISDIR = $(WXDIR)\contrib\src\$(NAME)
10 DOCSOURCES=$(DOCSOURCEDIR)\manual.tex \
11 $(DOCSOURCEDIR)\classes.tex $(DOCSOURCEDIR)\topics.tex
13 alldocs: mkdirs html htmlhelp htb hlp pdfrtf
14 html: touchmanual $(DOCDIR)\html\$(NAME)\$(NAME).htm
15 htmlhelp: touchmanual $(DOCDIR)\htmlhelp\$(NAME).chm
16 htb: $(DOCDIR)\htb\$(NAME).htb
17 hlp: touchmanual $(DOCDIR)\winhelp\$(NAME).hlp
18 pdfrtf: $(DOCDIR)\pdf\$(NAME).rtf
19 ps: $(DOCDIR)\ps\$(NAME).ps
22 touch $(DOCSOURCEDIR)\manual.tex
24 $(DOCDIR)\winhelp\$(NAME).hlp: $(DOCSOURCEDIR)\$(NAME).rtf $(DOCSOURCEDIR)\$(NAME).hpj
28 move $(NAME).hlp $(DOCDIR)\winhelp\$(NAME).hlp
29 move $(NAME).cnt $(DOCDIR)\winhelp\$(NAME).cnt
32 $(DOCSOURCEDIR)\$(NAME).hpj:
33 echo [OPTIONS] > $(DOCSOURCEDIR)\$(NAME).hpj
34 echo BMROOT=$(WXDIR)\contrib\docs\latex\$(NAME) >> $(DOCSOURCEDIR)\$(NAME).hpj
35 echo TITLE=OGL Manual >> $(DOCSOURCEDIR)\$(NAME).hpj
36 echo CONTENTS=Contents >> $(DOCSOURCEDIR)\$(NAME).hpj
37 echo COMPRESS=HIGH >> $(DOCSOURCEDIR)\$(NAME).hpj
38 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
39 echo [FILES] >> $(DOCSOURCEDIR)\$(NAME).hpj
40 echo $(NAME).rtf >> $(DOCSOURCEDIR)\$(NAME).hpj
41 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
42 echo [CONFIG] >> $(DOCSOURCEDIR)\$(NAME).hpj
43 echo CreateButton("Up", "&Up", "JumpId(`$(NAME).hlp', `Contents')") >> $(DOCSOURCEDIR)\$(NAME).hpj
44 echo BrowseButtons() >> $(DOCSOURCEDIR)\$(NAME).hpj
45 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
46 echo [MAP] >> $(DOCSOURCEDIR)\$(NAME).hpj
47 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
48 echo [BITMAPS] >> $(DOCSOURCEDIR)\$(NAME).hpj
50 $(DOCSOURCEDIR)\$(NAME).rtf: $(DOCSOURCES)
52 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\manual.tex $(DOCSOURCEDIR)\$(NAME).rtf -twice -winhelp
55 $(DOCDIR)\pdf\$(NAME).rtf: $(DOCSOURCES)
57 -copy *.bmp $(DOCDIR)\pdf
58 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\manual.tex $(DOCDIR)\pdf\$(NAME).rtf -twice -rtf
61 $(DOCDIR)\html\$(NAME)\$(NAME).htm: $(DOCSOURCES)
63 -mkdir $(DOCDIR)\html\$(NAME)
64 copy *.gif $(DOCDIR)\html\$(NAME)
65 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\manual.tex $(DOCDIR)\html\$(NAME)\$(NAME) -html -twice
66 -erase $(DOCDIR)\html\$(NAME)\*.con
68 -erase $(DOCDIR)\html\$(NAME)\*.ref
71 $(DOCDIR)\htmlhelp\$(NAME).chm: $(DOCDIR)\html\$(NAME)\$(NAME).htm $(DOCDIR)\html\$(NAME)\$(NAME).hhp
72 cd $(DOCDIR)\html\$(NAME)
74 -erase $(DOCDIR)\htmlhelp\$(NAME).chm
75 move $(NAME).chm $(DOCDIR)\htmlhelp\$(NAME).chm
78 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
79 # files, renamed to htb.
80 # This can then be used with e.g. helpview.
81 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
82 $(DOCDIR)\htb\$(NAME).htb: $(DOCDIR)\html\$(NAME)\$(NAME).htm
83 cd $(DOCDIR)\html\$(NAME)
84 -erase $(NAME).zip $(NAME).htb
85 zip $(NAME).zip *.htm *.gif *.hhp *.hhc *.hhk
87 -erase $(DOCDIR)\htb\$(NAME).htb
88 -erase $(DOCDIR)\htb\$(NAME).htb
89 move $(NAME).zip $(DOCDIR)\htb\$(NAME).htb
92 $(DOCSOURCEDIR)\$(NAME).dvi: $(DOCSOURCES)
102 $(WXDIR)\docs\ps\$(NAME).ps: $(DOCSOURCEDIR)\$(NAME).dvi
104 -dvips32 -o $(NAME).ps $(NAME)
105 move $(NAME).ps $(WXDIR)\docs\ps\$(NAME).ps