]> git.saurik.com Git - wxWidgets.git/blob - contrib/docs/latex/gizmos/makefile.vc
Added wxTreeListCtrl: patch [ 883529 ] wxTreeListCltr
[wxWidgets.git] / contrib / docs / latex / gizmos / makefile.vc
1 # File: makefile.vc
2 # Author: Julian Smart
3 # Created: 2002
4 # Updated:
5 # Copyright: (c) 2002, Julian Smart
6 #
7 # "%W% %G%"
8 #
9 # Makefile : Builds documents using VC++ nmake
10 #
11
12 WXDIR=$(WXWIN)
13 THISDIR=$(WXDIR)\contrib\docs\latex\gizmos
14 DOCDIR = $(WXDIR)\docs
15 WAITFLAG=/w
16
17 docs: dirs winhelp html pdfrtf htb htmlhelp
18 winhelp: $(DOCDIR)/winhelp/gizmos.hlp
19 rtf: $(THISDIR)/latex/gizmos/gizmos.rtf
20 pdfrtf: $(DOCDIR)/pdf/gizmos.rtf
21 htb: $(DOCDIR)\htb\gizmos.htb
22 html: $(DOCDIR)\html\gizmos\gizmos.htm
23 htmlhelp: $(DOCDIR)\htmlhelp\gizmos.chm
24
25 dirs:
26 -mkdir $(DOCDIR)\winhelp
27 -mkdir $(DOCDIR)\html
28 -mkdir $(DOCDIR)\html\gizmos
29 -mkdir $(DOCDIR)\htmlhelp
30 -mkdir $(DOCDIR)\htb
31 -mkdir $(DOCDIR)\pdf
32
33 $(DOCDIR)/winhelp/gizmos.hlp: $(THISDIR)/gizmos.rtf $(THISDIR)/gizmos.hpj
34 cd $(THISDIR)
35 -erase gizmos.ph
36 hc gizmos
37 -erase $(DOCDIR)\winhelp\gizmos.hlp
38 -erase $(DOCDIR)\winhelp\gizmos.cnt
39 move gizmos.hlp $(DOCDIR)\winhelp\gizmos.hlp
40 move gizmos.cnt $(DOCDIR)\winhelp\gizmos.cnt
41 cd $(THISDIR)
42
43 $(THISDIR)/gizmos.rtf: $(THISDIR)/classes.tex $(THISDIR)/body.tex $(THISDIR)/topics.tex $(THISDIR)/manual.tex
44 cd $(THISDIR)
45 -start $(WAITFLAG) tex2rtf $(THISDIR)/manual.tex $(THISDIR)/gizmos.rtf -twice -winhelp
46 cd $(THISDIR)
47
48 $(DOCDIR)/pdf/gizmos.rtf: $(THISDIR)/classes.tex $(THISDIR)/body.tex $(THISDIR)/topics.tex $(THISDIR)/manual.tex
49 cd $(THISDIR)
50 -copy *.wmf $(DOCDIR)\pdf
51 -copy *.bmp $(DOCDIR)\pdf
52 -start $(WAITFLAG) tex2rtf $(THISDIR)/manual.tex $(DOCDIR)/pdf/gizmos.rtf -twice -rtf
53 cd $(THISDIR)
54
55 $(DOCDIR)\html\gizmos\gizmos.htm: $(THISDIR)\classes.tex $(THISDIR)\body.tex $(THISDIR)/topics.tex $(THISDIR)\manual.tex
56 cd $(THISDIR)
57 -mkdir $(DOCDIR)\html\gizmos
58 copy *.gif $(DOCDIR)\html\gizmos
59 -start $(WAITFLAG) tex2rtf $(THISDIR)\manual.tex $(DOCDIR)\html\gizmos\gizmos.htm -twice -html
60 -erase $(DOCDIR)\html\gizmos\*.con
61 -erase $(DOCDIR)\html\gizmos\*.ref
62 -erase $(THISDIR)\*.con
63 -erase $(THISDIR)\*.ref
64 cd $(THISDIR)
65
66 $(DOCDIR)\htmlhelp\gizmos.chm : $(DOCDIR)\html\gizmos\gizmos.htm $(DOCDIR)\html\gizmos\gizmos.hhp
67 cd $(DOCDIR)\html\gizmos
68 -hhc gizmos.hhp
69 -mkdir ..\..\htmlhelp
70 -erase $(DOCDIR)\htmlhelp\gizmos.chm
71 move gizmos.chm ..\..\htmlhelp
72 cd $(THISDIR)
73
74 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
75 # files, renamed to htb.
76 # This can then be used with e.g. helpview.
77 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
78 $(DOCDIR)\htb\gizmos.htb: $(DOCDIR)\html\gizmos\gizmos.htm
79 cd $(WXDIR)\docs\html\gizmos
80 -erase gizmos.zip gizmos.htb
81 zip gizmos.zip *.htm *.gif *.hhp *.hhc *.hhk
82 -mkdir $(DOCDIR)\htb
83 move gizmos.zip $(DOCDIR)\htb\gizmos.htb
84 cd $(THISDIR)
85
86 # In order to force document reprocessing
87 touchmanual:
88 -touch $(WXDIR)\docs\latex\gizmos\manual.tex
89
90 updatedocs: touchmanual alldocs
91
92 cleandocs:
93 -erase $(DOCDIR)\winhelp\gizmos.hlp
94 -erase $(DOCDIR)\winhelp\gizmos.cnt
95 -erase $(DOCDIR)\html\gizmos\*.htm
96 -erase $(DOCDIR)\pdf\gizmos.rtf
97 -erase $(THISDIR)\gizmos.rtf
98 -erase $(THISDIR)\gizmos.PH
99 -erase $(DOCDIR)\htmlhelp\gizmos.chm
100 -erase $(DOCDIR)\htb\gizmos.htb
101
102 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
103 # Office StartUp folder, and PDFMaker should be installed.
104 #updatepdf: # touchmanual pdfrtf
105 # start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\gizmos.rtf /mGeneratePDF"
106
107