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