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