]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/ogl/makedocs.vc
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / contrib / src / ogl / makedocs.vc
CommitLineData
a3c5de68
CE
1#
2# File: makefile.vc
3WXDIR=$(WXWIN)
4
5NAME=ogl
6DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\$(NAME)
7DOCDIR=$(WXDIR)\docs
8THISDIR = $(WXDIR)\contrib\src\$(NAME)
9DOCSOURCES=$(DOCSOURCEDIR)\$(NAME).tex \
10 $(DOCSOURCEDIR)\classes.tex $(DOCSOURCEDIR)\topics.tex
11
12alldocs: mkdirs html htmlhelp htb hlp pdfrtf
13html: touchmanual $(DOCDIR)\html\$(NAME)\$(NAME).htm
14htmlhelp: touchmanual $(DOCDIR)\htmlhelp\$(NAME).chm
15htb: $(DOCDIR)\htb\$(NAME).htb
16hlp: touchmanual $(DOCDIR)\winhelp\$(NAME).hlp
17pdfrtf: $(DOCDIR)\pdf\$(NAME).rtf
18ps: $(DOCDIR)\ps\$(NAME).ps
19
20touchmanual:
21 touch $(DOCSOURCEDIR)\$(NAME).tex
22
23$(DOCDIR)\winhelp\$(NAME).hlp: $(DOCSOURCEDIR)\$(NAME).rtf $(DOCSOURCEDIR)\$(NAME).hpj
24 cd $(DOCSOURCEDIR)
25 -erase $(NAME).ph
26 hcw /c /e $(NAME)
27 move $(NAME).hlp $(DOCDIR)\winhelp\$(NAME).hlp
28 move $(NAME).cnt $(DOCDIR)\winhelp\$(NAME).cnt
29 cd $(THISDIR)
30
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
48
49$(DOCSOURCEDIR)\$(NAME).rtf: $(DOCSOURCES)
50 cd $(DOCSOURCEDIR)
51 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\$(NAME).tex $(DOCSOURCEDIR)\$(NAME).rtf -twice -winhelp
52 cd $(THISDIR)
53
54$(DOCDIR)\pdf\$(NAME).rtf: $(DOCSOURCES)
55 cd $(DOCSOURCEDIR)
56 -copy *.bmp $(DOCDIR)\pdf
57 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\$(NAME).tex $(DOCDIR)\pdf\$(NAME).rtf -twice -rtf
58 cd $(THISDIR)
59
60$(DOCDIR)\html\$(NAME)\$(NAME).htm: $(DOCSOURCES)
61 cd $(DOCSOURCEDIR)
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
66 -erase *.con
67 -erase $(DOCDIR)\html\$(NAME)\*.ref
68 cd $(THISDIR)
69
70$(DOCDIR)\htmlhelp\$(NAME).chm: $(DOCDIR)\html\$(NAME)\$(NAME).htm $(DOCDIR)\html\$(NAME)\$(NAME).hhp
71 cd $(DOCDIR)\html\$(NAME)
72 -hhc $(NAME).hhp
73 -erase $(DOCDIR)\htmlhelp\$(NAME).chm
74 move $(NAME).chm $(DOCDIR)\htmlhelp\$(NAME).chm
75 cd $(THISDIR)
76
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
85 -mkdir $(DOCDIR)\htb
86 -erase $(DOCDIR)\htb\$(NAME).htb
87 -erase $(DOCDIR)\htb\$(NAME).htb
88 move $(NAME).zip $(DOCDIR)\htb\$(NAME).htb
89 cd $(THISDIR)
90
91$(DOCSOURCEDIR)\$(NAME).dvi: $(DOCSOURCES)
92 cd $(DOCSOURCEDIR)
93 -latex $(NAME)
94 -latex $(NAME)
95 -makeindx $(NAME)
96 -bibtex $(NAME)
97 -latex $(NAME)
98 -latex $(NAME)
99 cd $(THISDIR)
100
101$(WXDIR)\docs\ps\$(NAME).ps: $(DOCSOURCEDIR)\$(NAME).dvi
102 cd $(DOCSOURCEDIR)
103 -dvips32 -o $(NAME).ps $(NAME)
104 move $(NAME).ps $(WXDIR)\docs\ps\$(NAME).ps
105 cd $(THISDIR)
106