6 DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\$(NAME)
8 THISDIR = $(WXDIR)\contrib\src\$(NAME)
9 DOCSOURCES=$(DOCSOURCEDIR)\$(NAME).tex \
10 $(DOCSOURCEDIR)\classes.tex $(DOCSOURCEDIR)\topics.tex
12 alldocs: mkdirs html htmlhelp htb hlp pdfrtf
13 html: touchmanual $(DOCDIR)\html\$(NAME)\$(NAME).htm
14 htmlhelp: touchmanual $(DOCDIR)\htmlhelp\$(NAME).chm
15 htb: $(DOCDIR)\htb\$(NAME).htb
16 hlp: touchmanual $(DOCDIR)\winhelp\$(NAME).hlp
17 pdfrtf: $(DOCDIR)\pdf\$(NAME).rtf
18 ps: $(DOCDIR)\ps\$(NAME).ps
21 touch $(DOCSOURCEDIR)\$(NAME).tex
23 $(DOCDIR)\winhelp\$(NAME).hlp: $(DOCSOURCEDIR)\$(NAME).rtf $(DOCSOURCEDIR)\$(NAME).hpj
27 move $(NAME).hlp $(DOCDIR)\winhelp\$(NAME).hlp
28 move $(NAME).cnt $(DOCDIR)\winhelp\$(NAME).cnt
31 $(DOCSOURCEDIR)\$(NAME).hpj:
32 echo [OPTIONS] > $(DOCSOURCEDIR)\$(NAME).hpj
33 echo BMROOT=$(WXDIR)\contrib\docs\latex\$(NAME) >> $(DOCSOURCEDIR)\$(NAME).hpj
34 echo TITLE=OGL Manual >> $(DOCSOURCEDIR)\$(NAME).hpj
35 echo CONTENTS=Contents >> $(DOCSOURCEDIR)\$(NAME).hpj
36 echo COMPRESS=HIGH >> $(DOCSOURCEDIR)\$(NAME).hpj
37 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
38 echo [FILES] >> $(DOCSOURCEDIR)\$(NAME).hpj
39 echo $(NAME).rtf >> $(DOCSOURCEDIR)\$(NAME).hpj
40 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
41 echo [CONFIG] >> $(DOCSOURCEDIR)\$(NAME).hpj
42 echo CreateButton("Up", "&Up", "JumpId(`$(NAME).hlp', `Contents')") >> $(DOCSOURCEDIR)\$(NAME).hpj
43 echo BrowseButtons() >> $(DOCSOURCEDIR)\$(NAME).hpj
44 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
45 echo [MAP] >> $(DOCSOURCEDIR)\$(NAME).hpj
46 echo "" >> $(DOCSOURCEDIR)\$(NAME).hpj
47 echo [BITMAPS] >> $(DOCSOURCEDIR)\$(NAME).hpj
49 $(DOCSOURCEDIR)\$(NAME).rtf: $(DOCSOURCES)
51 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\$(NAME).tex $(DOCSOURCEDIR)\$(NAME).rtf -twice -winhelp
54 $(DOCDIR)\pdf\$(NAME).rtf: $(DOCSOURCES)
56 -copy *.bmp $(DOCDIR)\pdf
57 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\$(NAME).tex $(DOCDIR)\pdf\$(NAME).rtf -twice -rtf
60 $(DOCDIR)\html\$(NAME)\$(NAME).htm: $(DOCSOURCES)
62 -mkdir $(DOCDIR)\html\$(NAME)
63 copy *.gif $(DOCDIR)\html\$(NAME)
64 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\$(NAME).tex $(DOCDIR)\html\$(NAME)\$(NAME).htm -twice -html
65 -erase $(DOCDIR)\html\$(NAME)\*.con
67 -erase $(DOCDIR)\html\$(NAME)\*.ref
70 $(DOCDIR)\htmlhelp\$(NAME).chm: $(DOCDIR)\html\$(NAME)\$(NAME).htm $(DOCDIR)\html\$(NAME)\$(NAME).hhp
71 cd $(DOCDIR)\html\$(NAME)
73 -erase $(DOCDIR)\htmlhelp\$(NAME).chm
74 move $(NAME).chm $(DOCDIR)\htmlhelp\$(NAME).chm
77 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
78 # files, renamed to htb.
79 # This can then be used with e.g. helpview.
80 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
81 $(DOCDIR)\htb\$(NAME).htb: $(DOCDIR)\html\$(NAME)\$(NAME).htm
82 cd $(DOCDIR)\html\$(NAME)
83 -erase $(NAME).zip $(NAME).htb
84 zip $(NAME).zip *.htm *.gif *.hhp *.hhc *.hhk
86 -erase $(DOCDIR)\htb\$(NAME).htb
87 -erase $(DOCDIR)\htb\$(NAME).htb
88 move $(NAME).zip $(DOCDIR)\htb\$(NAME).htb
91 $(DOCSOURCEDIR)\$(NAME).dvi: $(DOCSOURCES)
101 $(WXDIR)\docs\ps\$(NAME).ps: $(DOCSOURCEDIR)\$(NAME).dvi
103 -dvips32 -o $(NAME).ps $(NAME)
104 move $(NAME).ps $(WXDIR)\docs\ps\$(NAME).ps