6 # Copyright: (c) 2001, Julian Smart
10 # This has not been tested Chris Elliott (biol75@york.ac.uk) and
11 # the docs don't yet exist
13 # Makefile : Builds dcsvg class library (MS VC++).
14 # Use FINAL=1 argument to nmake to build final version with no debugging
18 # Set WXDIR for your system
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
26 !include $(WXDIR)\src\makevc.env
28 OBJECTS = $(D)\dcsvg.obj
30 LIBTARGET=$(WXDIR)\lib\dcsvg$(LIBEXT).lib
32 all: $(D) $(LIBTARGET)
39 nmake -f makefile.vc FINAL=$(FINAL)
44 nmake -f makefile.vc clean
47 $(LIBTARGET): $(OBJECTS)
55 $(D)\dcsvg.obj: dcsvg.$(SRCSUFF)
57 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
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
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
82 touch $(LOCALDOCDIR)\dcsvg.tex
85 $(DOCDIR)\winhelp\dcsvg.hlp: $(LOCALDOCDIR)\dcsvg.rtf $(LOCALDOCDIR)\dcsvg.hpj
89 move dcsvg.hlp $(DOCDIR)\winhelp\dcsvg.hlp
90 move dcsvg.cnt $(DOCDIR)\winhelp\dcsvg.cnt
93 $(LOCALDOCDIR)\dcsvg.rtf: $(DOCSOURCES)
95 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\dcsvg.tex $(LOCALDOCDIR)\dcsvg.rtf -twice -winhelp
98 $(DOCDIR)\pdf\dcsvg.rtf: $(DOCSOURCES)
100 -copy *.bmp $(DOCDIR)\pdf
101 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\dcsvg.tex $(DOCDIR)\pdf\dcsvg.rtf -twice -rtf
104 $(DOCDIR)\html\dcsvg\dcsvg.htm: $(DOCSOURCES)
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
111 -erase $(DOCDIR)\html\dcsvg\*.ref
114 $(DOCDIR)\htmlhelp\dcsvg.chm: $(DOCDIR)\html\dcsvg\dcsvg.htm $(DOCDIR)\html\dcsvg\dcsvg.hhp
115 cd $(DOCDIR)\html\dcsvg
117 move dcsvg.chm $(DOCDIR)\htmlhelp\dcsvg.chm
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
129 move dcsvg.zip $(DOCDIR)\htb\dcsvg.htb
132 $(LOCALDOCDIR)\dcsvg.dvi: $(DOCSOURCES)
142 $(WXDIR)\docs\ps\dcsvg.ps: $(LOCALDOCDIR)\dcsvg.dvi
144 -dvips32 -o dcsvg.ps dcsvg
145 move dcsvg.ps $(WXDIR)\docs\ps\dcsvg.ps