5 # Copyright: (c) 1993, AIAI, University of Edinburgh
9 # Makefile : Builds Tex2RTF on Windows Windows 95/NT
11 !include <..\..\..\src\makevc.env>
13 TEX2RTFDIR = $(WXDIR)\utils\tex2rtf
14 TEX2RTFINC = $(TEX2RTFDIR)\src
17 LOCALDOCDIR=$(WXDIR)\utils\tex2rtf\docs
18 THISDIR=$(TEX2RTFDIR)\src
20 OBJECTS = tex2rtf.obj tex2any.obj texutils.obj rtfutils.obj xlputils.obj htmlutil.obj readshg.obj table.obj
29 $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
33 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
37 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
38 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
40 tex2any.obj: tex2any.$(SRCSUFF) tex2any.h
42 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
45 texutils.obj: texutils.$(SRCSUFF) tex2any.h
47 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
50 tex2rtf.obj: tex2rtf.$(SRCSUFF) bmputils.h tex2rtf.h tex2any.h
52 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
55 rtfutils.obj: rtfutils.$(SRCSUFF) tex2rtf.h bmputils.h tex2any.h readshg.h table.h
57 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
60 table.obj: table.$(SRCSUFF) table.h
62 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
65 readshg.obj: readshg.$(SRCSUFF) readshg.h
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 xlputils.obj: xlputils.$(SRCSUFF) tex2rtf.h rtfutils.h tex2any.h
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 htmlutil.obj: htmlutil.$(SRCSUFF) tex2rtf.h tex2any.h table.h
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
89 erase *.exe *.obj *.pch *.res
91 DOCSOURCES=$(LOCALDOCDIR)\tex2rtf.tex
93 html: $(DOCDIR)\html\tex2rtf\t2rtf.htm
94 htmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm
95 htb: $(DOCDIR)\htb\tex2rtf.htb
96 hlp: $(DOCDIR)\winhelp\tex2rtf.hlp
97 pdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf
98 ps: $(WXDIR)\docs\ps\tex2rtf.ps
100 $(DOCDIR)\winhelp\tex2rtf.hlp: $(LOCALDOCDIR)\tex2rtf.rtf $(LOCALDOCDIR)\tex2rtf.hpj
104 copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp
105 copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt
108 $(LOCALDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
110 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(LOCALDOCDIR)\tex2rtf.rtf -twice -winhelp
113 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
115 -copy *.wmf $(DOCDIR)\pdf
116 -copy *.bmp $(DOCDIR)\pdf
117 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
120 $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES)
122 -mkdir $(DOCDIR)\html\tex2rtf
123 -copy *.gif $(DOCDIR)\html\tex2rtf
124 -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\html\tex2rtf\t2rtf.htm -twice -html
125 -erase $(DOCDIR)\html\tex2rtf\*.con
126 -erase $(DOCDIR)\html\tex2rtf\*.ref
129 $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp
130 cd $(DOCDIR)\html\tex2rtf
132 move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm
135 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
136 # files, renamed to htb.
137 # This can then be used with e.g. helpview.
138 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
139 $(DOCDIR)\htb\tex2rtf.htb: $(DOCDIR)\html\tex2rtf\t2rtf.htm
140 cd $(DOCDIR)\html\tex2rtf
141 -erase tex2rtf.zip tex2rtf.htb
142 zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk
144 move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb
147 $(LOCALDOCDIR)\tex2rtf.dvi: $(DOCSOURCES)
157 $(WXDIR)\docs\ps\tex2rtf.ps: $(LOCALDOCDIR)\tex2rtf.dvi
159 -dvips32 -o tex2rtf.ps tex2rtf
160 copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps