]>
Commit | Line | Data |
---|---|---|
9a29912f JS |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
6 | # | |
7 | # "%W% %G%" | |
8 | # | |
9 | # Makefile : Builds Tex2RTF on Windows Windows 95/NT | |
10 | # | |
48d1144b | 11 | !include <..\..\..\src\makevc.env> |
9a29912f JS |
12 | |
13 | TEX2RTFDIR = $(WXDIR)\utils\tex2rtf | |
14 | TEX2RTFINC = $(TEX2RTFDIR)\src | |
15 | PROGRAM=tex2rtf | |
16 | DOCDIR=$(WXDIR)\docs | |
17 | LOCALDOCDIR=$(WXDIR)\utils\tex2rtf\docs | |
18 | THISDIR=$(TEX2RTFDIR)\src | |
19 | ||
20 | OBJECTS = tex2rtf.obj tex2any.obj texutils.obj rtfutils.obj xlputils.obj htmlutil.obj readshg.obj table.obj | |
21 | ||
22 | all: tex2rtf.exe | |
23 | ||
24 | wx: | |
25 | cd $(WXDIR)\src\msw | |
7921cf2b | 26 | nmake -f makefile.vc |
9a29912f JS |
27 | cd $(TEX2RTFDIR)\src |
28 | ||
29 | $(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res | |
30 | $(link) @<< | |
31 | -out:$(PROGRAM).exe | |
32 | $(LINKFLAGS) | |
33 | $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res | |
34 | $(LIBS) | |
35 | << | |
36 | ||
37 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc | |
38 | $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc | |
39 | ||
40 | tex2any.obj: tex2any.$(SRCSUFF) tex2any.h | |
41 | cl @<< | |
42 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
43 | << | |
44 | ||
45 | texutils.obj: texutils.$(SRCSUFF) tex2any.h | |
46 | cl @<< | |
47 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
48 | << | |
49 | ||
50 | tex2rtf.obj: tex2rtf.$(SRCSUFF) bmputils.h tex2rtf.h tex2any.h | |
51 | cl @<< | |
52 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
53 | << | |
54 | ||
55 | rtfutils.obj: rtfutils.$(SRCSUFF) tex2rtf.h bmputils.h tex2any.h readshg.h table.h | |
56 | cl @<< | |
57 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
58 | << | |
59 | ||
60 | table.obj: table.$(SRCSUFF) table.h | |
61 | cl @<< | |
62 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
63 | << | |
64 | ||
65 | readshg.obj: readshg.$(SRCSUFF) readshg.h | |
66 | cl @<< | |
67 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
68 | << | |
69 | ||
70 | xlputils.obj: xlputils.$(SRCSUFF) tex2rtf.h rtfutils.h tex2any.h | |
71 | cl @<< | |
72 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
73 | << | |
74 | ||
75 | htmlutil.obj: htmlutil.$(SRCSUFF) tex2rtf.h tex2any.h table.h | |
76 | cl @<< | |
77 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
78 | << | |
79 | ||
80 | clean: | |
81 | -erase *.obj | |
82 | -erase *.sbr | |
83 | -erase *.exe | |
84 | -erase *.res | |
85 | -erase *.map | |
86 | -erase *.pdb | |
87 | ||
88 | cleanall: | |
89 | erase *.exe *.obj *.pch *.res | |
90 | ||
91 | DOCSOURCES=$(LOCALDOCDIR)\tex2rtf.tex | |
92 | ||
93 | html: $(DOCDIR)\html\tex2rtf\t2rtf.htm | |
f6bcfd97 BP |
94 | htmlhelp: $(DOCDIR)\htmlhelp\tex2rtf.chm |
95 | htb: $(DOCDIR)\htb\tex2rtf.htb | |
9a29912f JS |
96 | hlp: $(DOCDIR)\winhelp\tex2rtf.hlp |
97 | pdfrtf: $(DOCDIR)\pdf\tex2rtf.rtf | |
98 | ps: $(WXDIR)\docs\ps\tex2rtf.ps | |
99 | ||
100 | $(DOCDIR)\winhelp\tex2rtf.hlp: $(LOCALDOCDIR)\tex2rtf.rtf $(LOCALDOCDIR)\tex2rtf.hpj | |
101 | cd $(LOCALDOCDIR) | |
102 | -erase tex2rtf.ph | |
103 | hc tex2rtf | |
104 | copy tex2rtf.hlp $(DOCDIR)\winhelp\tex2rtf.hlp | |
105 | copy tex2rtf.cnt $(DOCDIR)\winhelp\tex2rtf.cnt | |
106 | cd $(THISDIR) | |
107 | ||
108 | $(LOCALDOCDIR)\tex2rtf.rtf: $(DOCSOURCES) | |
109 | cd $(LOCALDOCDIR) | |
110 | -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(LOCALDOCDIR)\tex2rtf.rtf -twice -winhelp | |
111 | cd $(THISDIR) | |
112 | ||
113 | $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES) | |
114 | cd $(LOCALDOCDIR) | |
48c12cb1 PA |
115 | -copy *.wmf $(DOCDIR)\pdf |
116 | -copy *.bmp $(DOCDIR)\pdf | |
9a29912f JS |
117 | -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf |
118 | cd $(THISDIR) | |
119 | ||
120 | $(DOCDIR)\html\tex2rtf\t2rtf.htm: $(DOCSOURCES) | |
121 | cd $(LOCALDOCDIR) | |
122 | -mkdir $(DOCDIR)\html\tex2rtf | |
f6bcfd97 | 123 | -copy *.gif $(DOCDIR)\html\tex2rtf |
9a29912f JS |
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 | |
127 | cd $(THISDIR) | |
128 | ||
f6bcfd97 BP |
129 | $(DOCDIR)\htmlhelp\tex2rtf.chm : $(DOCDIR)\html\tex2rtf\t2rtf.htm $(DOCDIR)\html\tex2rtf\t2rtf.hhp |
130 | cd $(DOCDIR)\html\tex2rtf | |
131 | -hhc t2rtf.hhp | |
132 | move t2rtf.chm $(DOCDIR)\htmlhelp\tex2rtf.chm | |
133 | cd $(THISDIR) | |
134 | ||
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 | |
f1d93f0b JS |
141 | -erase tex2rtf.zip tex2rtf.htb |
142 | zip tex2rtf.zip *.htm *.gif *.hhp *.hhc *.hhk | |
f6bcfd97 BP |
143 | -mkdir $(DOCDIR)\htb |
144 | move tex2rtf.zip $(DOCDIR)\htb\tex2rtf.htb | |
145 | cd $(THISDIR) | |
146 | ||
9a29912f JS |
147 | $(LOCALDOCDIR)\tex2rtf.dvi: $(DOCSOURCES) |
148 | cd $(LOCALDOCDIR) | |
149 | -latex tex2rtf | |
150 | -latex tex2rtf | |
151 | -makeindx tex2rtf | |
152 | -bibtex tex2rtf | |
153 | -latex tex2rtf | |
154 | -latex tex2rtf | |
155 | cd $(THISDIR) | |
156 | ||
157 | $(WXDIR)\docs\ps\tex2rtf.ps: $(LOCALDOCDIR)\tex2rtf.dvi | |
158 | cd $(LOCALDOCDIR) | |
159 | -dvips32 -o tex2rtf.ps tex2rtf | |
160 | copy tex2rtf.ps $(WXDIR)\docs\ps\tex2rtf.ps | |
161 | cd $(THISDIR) | |
162 | ||
163 |