6 # Copyright: (c) 2001, Julian Smart
10 # Makefile : Builds Plot class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # Set WXDIR for your system
17 GIZMOSDIR = $(WXDIR)\contrib\src\animate
18 GIZMOSINC = $(WXDIR)\contrib\include\wx\animate
19 THISDIR = $(WXDIR)\contrib\src\animate
20 DOCDIR=$(WXDIR)\contrib\docs
21 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\animate
23 !include $(WXDIR)\src\makevc.env
25 OBJECTS = $(D)\animate.obj
27 LIBTARGET=$(WXDIR)\lib\anim$(LIBEXT).lib
29 all: $(D) $(LIBTARGET)
36 nmake -f makefile.vc FINAL=$(FINAL)
41 nmake -f makefile.vc clean
44 $(LIBTARGET): $(OBJECTS)
52 $(D)\animate.obj: animate.$(SRCSUFF)
54 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
66 DOCSOURCES=$(LOCALDOCDIR)\animate.tex \
67 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
68 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
69 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
71 html: $(DOCDIR)\html\animate\animate.htm
72 htmlhelp: $(DOCDIR)\htmlhelp\animate.chm
73 htb: $(DOCDIR)\htb\animate.htb
74 hlp: $(DOCDIR)\winhelp\animate.hlp
75 pdfrtf: $(DOCDIR)\pdf\animate.rtf
76 ps: $(DOCDIR)\ps\animate.ps
79 touch $(LOCALDOCDIR)\animate.tex
82 $(DOCDIR)\winhelp\animate.hlp: $(LOCALDOCDIR)\animate.rtf $(LOCALDOCDIR)\animate.hpj
86 move animate.hlp $(DOCDIR)\winhelp\animate.hlp
87 move animate.cnt $(DOCDIR)\winhelp\animate.cnt
90 $(LOCALDOCDIR)\animate.rtf: $(DOCSOURCES)
92 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\animate.tex $(LOCALDOCDIR)\animate.rtf -twice -winhelp
95 $(DOCDIR)\pdf\animate.rtf: $(DOCSOURCES)
97 -copy *.bmp $(DOCDIR)\pdf
98 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\animate.tex $(DOCDIR)\pdf\animate.rtf -twice -rtf
101 $(DOCDIR)\html\animate\animate.htm: $(DOCSOURCES)
103 -mkdir $(DOCDIR)\html\animate
104 copy *.gif $(DOCDIR)\html\animate
105 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\animate.tex $(DOCDIR)\html\animate\animate.htm -twice -html
106 -erase $(DOCDIR)\html\animate\*.con
108 -erase $(DOCDIR)\html\animate\*.ref
111 $(DOCDIR)\htmlhelp\animate.chm: $(DOCDIR)\html\animate\animate.htm $(DOCDIR)\html\animate\animate.hhp
112 cd $(DOCDIR)\html\animate
114 move animate.chm $(DOCDIR)\htmlhelp\animate.chm
117 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
118 # files, renamed to htb.
119 # This can then be used with e.g. helpview.
120 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
121 $(DOCDIR)\htb\animate.htb: $(DOCDIR)\html\animate\animate.htm
122 cd $(DOCDIR)\html\animate
123 -erase animate.zip animate.htb
124 zip animate.zip *.htm *.gif *.hhp *.hhc *.hhk
126 move animate.zip $(DOCDIR)\htb\animate.htb
129 $(LOCALDOCDIR)\animate.dvi: $(DOCSOURCES)
139 $(WXDIR)\docs\ps\animate.ps: $(LOCALDOCDIR)\animate.dvi
141 -dvips32 -o animate.ps animate
142 move animate.ps $(WXDIR)\docs\ps\animate.ps