]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/book/makefile.vc
mingw32/cygwin compilation fixes
[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=$(WXWIN)
14
15 DOCDIR = $(WXDIR)\docs
16
17 WAITFLAG=/wait
18
19 # Making documents
20 docs: bookhlp bookhtml bookpdfrtf htb htmlhelp
21 alldocs: docs
22 hlp: bookhlp
23 bookhlp: $(DOCDIR)/winhelp/book.hlp
24 rtf: $(DOCDIR)/winhelp/book.rtf
25 pdfrtf: $(DOCDIR)/pdf/book.rtf
26 html: bookhtml
27 htb: $(DOCDIR)\htb\book.htb
28 bookhtml: $(DOCDIR)\html\book\book.htm
29 htmlhelp: $(DOCDIR)\htmlhelp\book.chm
30 bookps: $(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
66 -mkdir ..\..\htmlhelp
67 -erase ..\..\htmlhelp\book.chm
68 move book.chm ..\..\htmlhelp
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
93 -erase book.zip book.htb
94 zip book.zip *.htm *.gif *.hhp *.hhc *.hhk
95 -mkdir $(DOCDIR)\htb
96 move book.zip $(DOCDIR)\htb\book.htb
97 cd $(THISDIR)
98
99 # In order to force document reprocessing
100 touchbook:
101 -touch $(WXDIR)\docs\latex\book\book.tex
102
103 updatedocs: touchbook alldocs
104
105 cleandocs:
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
111
112 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
113 # Office StartUp folder, and PDFMaker should be installed.
114 updatepdf: # touchbook pdfrtf
115 start $(WAITFLAG) "winword d:\book2\bookWindows\docs\latex\pdf\book.rtf /mGeneratePDF"
116
117