]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/gizmos/makedocs.vc
glibc's vswprintf doesn't nul terminate on truncation.
[wxWidgets.git] / contrib / src / gizmos / makedocs.vc
1 #
2 # File: makefile.vc
3 WXDIR=$(WXWIN)
4
5 NAME=gizmos
6 WAITFLAG=/WAIT
7 DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\$(NAME)
8 DOCDIR=$(WXDIR)\docs
9 THISDIR = $(WXDIR)\contrib\src\$(NAME)
10 DOCSOURCES=$(DOCSOURCEDIR)\manual.tex \
11 $(DOCSOURCEDIR)\classes.tex $(DOCSOURCEDIR)\topics.tex
12
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
20
21 touchmanual:
22 touch $(DOCSOURCEDIR)\manual.tex
23
24 $(DOCDIR)\winhelp\$(NAME).hlp: $(DOCSOURCEDIR)\$(NAME).rtf $(DOCSOURCEDIR)\$(NAME).hpj
25 cd $(DOCSOURCEDIR)
26 -erase $(NAME).ph
27 hcw /c /e $(NAME)
28 move $(NAME).hlp $(DOCDIR)\winhelp\$(NAME).hlp
29 move $(NAME).cnt $(DOCDIR)\winhelp\$(NAME).cnt
30 cd $(THISDIR)
31
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
49
50 $(DOCSOURCEDIR)\$(NAME).rtf: $(DOCSOURCES)
51 cd $(DOCSOURCEDIR)
52 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\manual.tex $(DOCSOURCEDIR)\$(NAME).rtf -twice -winhelp
53 cd $(THISDIR)
54
55 $(DOCDIR)\pdf\$(NAME).rtf: $(DOCSOURCES)
56 cd $(DOCSOURCEDIR)
57 -copy *.bmp $(DOCDIR)\pdf
58 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\manual.tex $(DOCDIR)\pdf\$(NAME).rtf -twice -rtf
59 cd $(THISDIR)
60
61 $(DOCDIR)\html\$(NAME)\$(NAME).htm: $(DOCSOURCES)
62 cd $(DOCSOURCEDIR)
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
67 -erase *.con
68 -erase $(DOCDIR)\html\$(NAME)\*.ref
69 cd $(THISDIR)
70
71 $(DOCDIR)\htmlhelp\$(NAME).chm: $(DOCDIR)\html\$(NAME)\$(NAME).htm $(DOCDIR)\html\$(NAME)\$(NAME).hhp
72 cd $(DOCDIR)\html\$(NAME)
73 -hhc $(NAME).hhp
74 -erase $(DOCDIR)\htmlhelp\$(NAME).chm
75 move $(NAME).chm $(DOCDIR)\htmlhelp\$(NAME).chm
76 cd $(THISDIR)
77
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
86 -mkdir $(DOCDIR)\htb
87 -erase $(DOCDIR)\htb\$(NAME).htb
88 -erase $(DOCDIR)\htb\$(NAME).htb
89 move $(NAME).zip $(DOCDIR)\htb\$(NAME).htb
90 cd $(THISDIR)
91
92 $(DOCSOURCEDIR)\$(NAME).dvi: $(DOCSOURCES)
93 cd $(DOCSOURCEDIR)
94 -latex $(NAME)
95 -latex $(NAME)
96 -makeindx $(NAME)
97 -bibtex $(NAME)
98 -latex $(NAME)
99 -latex $(NAME)
100 cd $(THISDIR)
101
102 $(WXDIR)\docs\ps\$(NAME).ps: $(DOCSOURCEDIR)\$(NAME).dvi
103 cd $(DOCSOURCEDIR)
104 -dvips32 -o $(NAME).ps $(NAME)
105 move $(NAME).ps $(WXDIR)\docs\ps\$(NAME).ps
106 cd $(THISDIR)
107