]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/svg/makefile.vc
Added files to Tex2RTF file list
[wxWidgets.git] / contrib / src / svg / makefile.vc
1
2 # File: makefile.vc
3 # Author: Julian Smart
4 # Created: 2001
5 # Updated:
6 # Copyright: (c) 2001, Julian Smart
7 #
8 # "%W% %G%"
9 #
10 # This has not been tested Chris Elliott (biol75@york.ac.uk) and
11 # the docs don't yet exist
12 #
13 # Makefile : Builds dcsvg class library (MS VC++).
14 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # info
16
17
18 # Set WXDIR for your system
19 WXDIR = $(WXWIN)
20 GIZMOSDIR = $(WXDIR)\contrib\src\dcsvg
21 GIZMOSINC = $(WXDIR)\contrib\include\wx\dcsvg
22 THISDIR = $(WXDIR)\contrib\src\dcsvg
23 DOCDIR=$(WXDIR)\contrib\docs
24 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\dcsvg
25
26 !include $(WXDIR)\src\makevc.env
27
28 OBJECTS = $(D)\dcsvg.obj
29
30 LIBTARGET=$(WXDIR)\lib\dcsvg$(LIBEXT).lib
31
32 all: $(D) $(LIBTARGET)
33
34 $(D) :
35 mkdir $(D)
36
37 wx:
38 cd $(WXDIR)\src\msw
39 nmake -f makefile.vc FINAL=$(FINAL)
40 cd $(THISDIR)
41
42 wxclean:
43 cd $(WXDIR)\src\msw
44 nmake -f makefile.vc clean
45 cd $(THISDIR)
46
47 $(LIBTARGET): $(OBJECTS)
48 -erase $(LIBTARGET)
49 $(implib) @<<
50 -out:$(LIBTARGET)
51 -machine:$(CPU)
52 $(OBJECTS)
53 <<
54
55 $(D)\dcsvg.obj: dcsvg.$(SRCSUFF)
56 cl @<<
57 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
58 <<
59
60 clean:
61 -erase $(D)\*.obj
62 -erase *.sbr
63 -erase *.exe
64 -erase *.res
65 -erase *.map
66 -erase *.pdb
67 -erase $(LIBTARGET)
68
69 DOCSOURCES=$(LOCALDOCDIR)\dcsvg.tex \
70 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
71 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
72 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
73
74 html: $(DOCDIR)\html\dcsvg\dcsvg.htm
75 htmlhelp: $(DOCDIR)\htmlhelp\dcsvg.chm
76 htb: $(DOCDIR)\htb\dcsvg.htb
77 hlp: $(DOCDIR)\winhelp\dcsvg.hlp
78 pdfrtf: $(DOCDIR)\pdf\dcsvg.rtf
79 ps: $(DOCDIR)\ps\dcsvg.ps
80
81 touchmanual:
82 touch $(LOCALDOCDIR)\dcsvg.tex
83
84
85 $(DOCDIR)\winhelp\dcsvg.hlp: $(LOCALDOCDIR)\dcsvg.rtf $(LOCALDOCDIR)\dcsvg.hpj
86 cd $(LOCALDOCDIR)
87 -erase dcsvg.ph
88 hc dcsvg
89 move dcsvg.hlp $(DOCDIR)\winhelp\dcsvg.hlp
90 move dcsvg.cnt $(DOCDIR)\winhelp\dcsvg.cnt
91 cd $(THISDIR)
92
93 $(LOCALDOCDIR)\dcsvg.rtf: $(DOCSOURCES)
94 cd $(LOCALDOCDIR)
95 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\dcsvg.tex $(LOCALDOCDIR)\dcsvg.rtf -twice -winhelp
96 cd $(THISDIR)
97
98 $(DOCDIR)\pdf\dcsvg.rtf: $(DOCSOURCES)
99 cd $(LOCALDOCDIR)
100 -copy *.bmp $(DOCDIR)\pdf
101 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\dcsvg.tex $(DOCDIR)\pdf\dcsvg.rtf -twice -rtf
102 cd $(THISDIR)
103
104 $(DOCDIR)\html\dcsvg\dcsvg.htm: $(DOCSOURCES)
105 cd $(LOCALDOCDIR)
106 -mkdir $(DOCDIR)\html\dcsvg
107 copy *.gif $(DOCDIR)\html\dcsvg
108 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\dcsvg.tex $(DOCDIR)\html\dcsvg\dcsvg.htm -twice -html
109 -erase $(DOCDIR)\html\dcsvg\*.con
110 -erase *.con
111 -erase $(DOCDIR)\html\dcsvg\*.ref
112 cd $(THISDIR)
113
114 $(DOCDIR)\htmlhelp\dcsvg.chm: $(DOCDIR)\html\dcsvg\dcsvg.htm $(DOCDIR)\html\dcsvg\dcsvg.hhp
115 cd $(DOCDIR)\html\dcsvg
116 -hhc dcsvg.hhp
117 move dcsvg.chm $(DOCDIR)\htmlhelp\dcsvg.chm
118 cd $(THISDIR)
119
120 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
121 # files, renamed to htb.
122 # This can then be used with e.g. helpview.
123 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
124 $(DOCDIR)\htb\dcsvg.htb: $(DOCDIR)\html\dcsvg\dcsvg.htm
125 cd $(DOCDIR)\html\dcsvg
126 -erase dcsvg.zip dcsvg.htb
127 zip dcsvg.zip *.htm *.gif *.hhp *.hhc *.hhk
128 -mkdir $(DOCDIR)\htb
129 move dcsvg.zip $(DOCDIR)\htb\dcsvg.htb
130 cd $(THISDIR)
131
132 $(LOCALDOCDIR)\dcsvg.dvi: $(DOCSOURCES)
133 cd $(LOCALDOCDIR)
134 -latex dcsvg
135 -latex dcsvg
136 -makeindx dcsvg
137 -bibtex dcsvg
138 -latex dcsvg
139 -latex dcsvg
140 cd $(THISDIR)
141
142 $(WXDIR)\docs\ps\dcsvg.ps: $(LOCALDOCDIR)\dcsvg.dvi
143 cd $(LOCALDOCDIR)
144 -dvips32 -o dcsvg.ps dcsvg
145 move dcsvg.ps $(WXDIR)\docs\ps\dcsvg.ps
146 cd $(THISDIR)
147