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\plot
18 GIZMOSINC = $(WXDIR)\contrib\include\wx\plot
19 THISDIR = $(WXDIR)\contrib\src\plot
20 DOCDIR=$(WXDIR)\contrib\docs
21 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\plot
23 !include $(WXDIR)\src\makevc.env
25 OBJECTS = $(D)\plot.obj
27 LIBTARGET=$(WXDIR)\lib\plot$(LIBEXT).lib
29 all: $(D) $(LIBTARGET)
36 nmake -f makefile.vc FINAL=$(FINAL)
41 nmake -f makefile.vc clean
44 $(LIBTARGET): $(OBJECTS)
52 $(D)\plot.obj: plot.$(SRCSUFF)
54 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
66 DOCSOURCES=$(LOCALDOCDIR)\plot.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\plot\plot.htm
72 htmlhelp: $(DOCDIR)\htmlhelp\plot.chm
73 htb: $(DOCDIR)\htb\plot.htb
74 hlp: $(DOCDIR)\winhelp\plot.hlp
75 pdfrtf: $(DOCDIR)\pdf\plot.rtf
76 ps: $(DOCDIR)\ps\plot.ps
79 touch $(LOCALDOCDIR)\plot.tex
82 $(DOCDIR)\winhelp\plot.hlp: $(LOCALDOCDIR)\plot.rtf $(LOCALDOCDIR)\plot.hpj
86 move plot.hlp $(DOCDIR)\winhelp\plot.hlp
87 move plot.cnt $(DOCDIR)\winhelp\plot.cnt
90 $(LOCALDOCDIR)\plot.rtf: $(DOCSOURCES)
92 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(LOCALDOCDIR)\plot.rtf -twice -winhelp
95 $(DOCDIR)\pdf\plot.rtf: $(DOCSOURCES)
97 -copy *.bmp $(DOCDIR)\pdf
98 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(DOCDIR)\pdf\plot.rtf -twice -rtf
101 $(DOCDIR)\html\plot\plot.htm: $(DOCSOURCES)
103 -mkdir $(DOCDIR)\html\plot
104 copy *.gif $(DOCDIR)\html\plot
105 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(DOCDIR)\html\plot\plot.htm -twice -html
106 -erase $(DOCDIR)\html\plot\*.con
108 -erase $(DOCDIR)\html\plot\*.ref
111 $(DOCDIR)\htmlhelp\plot.chm: $(DOCDIR)\html\plot\plot.htm $(DOCDIR)\html\plot\plot.hhp
112 cd $(DOCDIR)\html\plot
114 move plot.chm $(DOCDIR)\htmlhelp\plot.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\plot.htb: $(DOCDIR)\html\plot\plot.htm
122 cd $(DOCDIR)\html\plot
123 -erase plot.zip plot.htb
124 zip plot.zip *.htm *.gif *.hhp *.hhc *.hhk
126 move plot.zip $(DOCDIR)\htb\plot.htb
129 $(LOCALDOCDIR)\plot.dvi: $(DOCSOURCES)
139 $(WXDIR)\docs\ps\plot.ps: $(LOCALDOCDIR)\plot.dvi
141 -dvips32 -o plot.ps plot
142 move plot.ps $(WXDIR)\docs\ps\plot.ps