Module of module types for OrderedType,ComparableType,Printable,Serializable,Discrete...
[ocaml.git] / build / install.sh
blob4f1e829d808c7c20d8080bceb000d3fdcc95f5fd
1 #!/bin/sh
2 # $Id$
3 set -e
5 cd `dirname $0`/..
7 . config/config.sh
9 not_installed=$PWD/_build/not_installed
11 rm -f "$not_installed"
12 touch "$not_installed"
14 wontinstall() {
15 echo "$1" >> "$not_installed"
16 echo " don't install $1"
19 installbin() {
20 if [ -f "$1" ]; then
21 echo " install binary $2"
22 cp -f "$1" "$2"
23 [ -x "$2" ] || chmod +x "$2"
24 else
25 wontinstall "$1"
29 installbestbin() {
30 if [ -f "$1" ]; then
31 echo " install binary $3 (with `basename $1`)"
32 cp -f "$1" "$3"
33 else
34 if [ -f "$2" ]; then
35 echo " install binary $3 (with `basename $2`)"
36 cp -f "$2" "$3"
37 else
38 echo "None of $1, $2 exists"
39 exit 3
42 [ -x "$3" ] || chmod +x "$3"
45 installlib() {
46 if [ -f "$1" ]; then
47 dest="$2/`basename $1`"
48 echo " install library $dest"
49 cp -f "$1" "$2"
50 if [ "$RANLIB" != "" ]; then
51 "$RANLIB" "$dest"
53 else
54 wontinstall "$1"
58 installdir() {
59 args=""
60 while [ $# -gt 1 ]; do
61 if [ -f "$1" ]; then
62 args="$args $1"
63 else
64 wontinstall "$1"
66 shift
67 done
68 last="$1"
69 for file in $args; do
70 echo " install $last/`basename $file`"
71 cp -f "$file" "$last"
72 done
75 installlibdir() {
76 args=""
77 while [ $# -gt 1 ]; do
78 args="$args $1"
79 shift
80 done
81 last="$1"
82 for file in $args; do
83 installlib "$file" "$last"
84 done
87 mkdir -p $BINDIR
88 mkdir -p $LIBDIR
89 mkdir -p $LIBDIR/caml
90 mkdir -p $LIBDIR/camlp4
91 mkdir -p $LIBDIR/vmthreads
92 mkdir -p $LIBDIR/threads
93 mkdir -p $LIBDIR/labltk
94 mkdir -p $LIBDIR/ocamlbuild
95 mkdir -p $LIBDIR/ocamldoc
96 mkdir -p $LIBDIR/ocamldoc/custom
97 mkdir -p $STUBLIBDIR
98 mkdir -p $MANDIR/man1
99 mkdir -p $MANDIR/man3
100 mkdir -p $MANDIR/man$MANEXT
102 echo "Installing core libraries..."
103 installlibdir byterun/libcamlrun.$A asmrun/libasmrun.$A asmrun/libasmrunp.$A \
104 $LIBDIR
106 PUBLIC_INCLUDES="\
107 alloc.h callback.h config.h custom.h fail.h intext.h \
108 memory.h misc.h mlvalues.h printexc.h signals.h compatibility.h"
110 cd byterun
111 for i in $PUBLIC_INCLUDES; do
112 echo " install caml/$i"
113 sed -f ../tools/cleanup-header $i > $LIBDIR/caml/$i
114 done
115 cd ..
117 WIN32=""
118 if [ "x$EXE" = "x.exe" ]; then
119 installbin win32caml/ocamlwin.exe $PREFIX/OCamlWin.exe
120 installdir byterun/ocamlrun.dll $BINDIR
121 WIN32=win32
124 installdir otherlibs/"$WIN32"unix/unixsupport.h \
125 otherlibs/bigarray/bigarray.h \
126 $LIBDIR/caml
128 installdir yacc/ocamlyacc byterun/ocamlrun $BINDIR
130 installdir config/Makefile $LIBDIR/Makefile.config
131 installdir byterun/ld.conf $LIBDIR
133 cd _build
135 echo "Installing the toplevel and compilers..."
136 installbin ocaml$EXE $BINDIR/ocaml$EXE
137 installbin ocamlc$EXE $BINDIR/ocamlc$EXE
138 installbin ocamlopt$EXE $BINDIR/ocamlopt$EXE
139 installbin ocamlc.opt$EXE $BINDIR/ocamlc.opt$EXE
140 installbin ocamlopt.opt$EXE $BINDIR/ocamlopt.opt$EXE
142 set=set # coloration workaround
144 echo "Installing the standard library..."
145 installdir \
146 stdlib/stdlib.cma \
147 stdlib/stdlib.cmxa stdlib/stdlib.p.cmxa \
148 stdlib/camlheader \
149 stdlib/camlheader_ur \
150 stdlib/std_exit.cm[io] \
151 stdlib/arg.cmi stdlib/arg.mli \
152 stdlib/array.cmi stdlib/array.mli \
153 stdlib/arrayLabels.cmi stdlib/arrayLabels.mli \
154 stdlib/buffer.cmi stdlib/buffer.mli \
155 stdlib/callback.cmi stdlib/callback.mli \
156 stdlib/camlinternalMod.cmi stdlib/camlinternalMod.mli \
157 stdlib/camlinternalOO.cmi stdlib/camlinternalOO.mli \
158 stdlib/char.cmi stdlib/char.mli \
159 stdlib/complex.cmi stdlib/complex.mli \
160 stdlib/digest.cmi stdlib/digest.mli \
161 stdlib/filename.cmi stdlib/filename.mli \
162 stdlib/format.cmi stdlib/format.mli \
163 stdlib/gc.cmi stdlib/gc.mli \
164 stdlib/genlex.cmi stdlib/genlex.mli \
165 stdlib/hashtbl.cmi stdlib/hashtbl.mli \
166 stdlib/int32.cmi stdlib/int32.mli \
167 stdlib/int64.cmi stdlib/int64.mli \
168 stdlib/lazy.cmi stdlib/lazy.mli \
169 stdlib/lexing.cmi stdlib/lexing.mli \
170 stdlib/list.cmi stdlib/list.mli \
171 stdlib/listLabels.cmi stdlib/listLabels.mli \
172 stdlib/map.cmi stdlib/map.mli \
173 stdlib/marshal.cmi stdlib/marshal.mli \
174 stdlib/moreLabels.cmi stdlib/moreLabels.mli \
175 stdlib/nativeint.cmi stdlib/nativeint.mli \
176 stdlib/obj.cmi stdlib/obj.mli \
177 stdlib/oo.cmi stdlib/oo.mli \
178 stdlib/parsing.cmi stdlib/parsing.mli \
179 stdlib/pervasives.cmi stdlib/pervasives.mli \
180 stdlib/printexc.cmi stdlib/printexc.mli \
181 stdlib/printf.cmi stdlib/printf.mli \
182 stdlib/queue.cmi stdlib/queue.mli \
183 stdlib/random.cmi stdlib/random.mli \
184 stdlib/scanf.cmi stdlib/scanf.mli \
185 stdlib/sort.cmi stdlib/sort.mli \
186 stdlib/stack.cmi stdlib/stack.mli \
187 stdlib/stdLabels.cmi stdlib/stdLabels.mli \
188 stdlib/stream.cmi stdlib/stream.mli \
189 stdlib/string.cmi stdlib/string.mli \
190 stdlib/stringLabels.cmi stdlib/stringLabels.mli \
191 stdlib/sys.cmi stdlib/sys.mli \
192 stdlib/weak.cmi stdlib/weak.mli \
193 stdlib/$set.cmi stdlib/$set.mli \
194 stdlib/arg.cmx stdlib/arg.p.cmx stdlib/arg.$O stdlib/arg.p.$O \
195 stdlib/array.cmx stdlib/array.p.cmx stdlib/array.$O stdlib/array.p.$O \
196 stdlib/arrayLabels.cmx stdlib/arrayLabels.p.cmx stdlib/arrayLabels.$O stdlib/arrayLabels.p.$O \
197 stdlib/buffer.cmx stdlib/buffer.p.cmx stdlib/buffer.$O stdlib/buffer.p.$O \
198 stdlib/callback.cmx stdlib/callback.p.cmx stdlib/callback.$O stdlib/callback.p.$O \
199 stdlib/camlinternalMod.cmx stdlib/camlinternalMod.p.cmx stdlib/camlinternalMod.$O stdlib/camlinternalMod.p.$O \
200 stdlib/camlinternalOO.cmx stdlib/camlinternalOO.p.cmx stdlib/camlinternalOO.$O stdlib/camlinternalOO.p.$O \
201 stdlib/char.cmx stdlib/char.p.cmx stdlib/char.$O stdlib/char.p.$O \
202 stdlib/complex.cmx stdlib/complex.p.cmx stdlib/complex.$O stdlib/complex.p.$O \
203 stdlib/digest.cmx stdlib/digest.p.cmx stdlib/digest.$O stdlib/digest.p.$O \
204 stdlib/filename.cmx stdlib/filename.p.cmx stdlib/filename.$O stdlib/filename.p.$O \
205 stdlib/format.cmx stdlib/format.p.cmx stdlib/format.$O stdlib/format.p.$O \
206 stdlib/gc.cmx stdlib/gc.p.cmx stdlib/gc.$O stdlib/gc.p.$O \
207 stdlib/genlex.cmx stdlib/genlex.p.cmx stdlib/genlex.$O stdlib/genlex.p.$O \
208 stdlib/hashtbl.cmx stdlib/hashtbl.p.cmx stdlib/hashtbl.$O stdlib/hashtbl.p.$O \
209 stdlib/int32.cmx stdlib/int32.p.cmx stdlib/int32.$O stdlib/int32.p.$O \
210 stdlib/int64.cmx stdlib/int64.p.cmx stdlib/int64.$O stdlib/int64.p.$O \
211 stdlib/lazy.cmx stdlib/lazy.p.cmx stdlib/lazy.$O stdlib/lazy.p.$O \
212 stdlib/lexing.cmx stdlib/lexing.p.cmx stdlib/lexing.$O stdlib/lexing.p.$O \
213 stdlib/list.cmx stdlib/list.p.cmx stdlib/list.$O stdlib/list.p.$O \
214 stdlib/listLabels.cmx stdlib/listLabels.p.cmx stdlib/listLabels.$O stdlib/listLabels.p.$O \
215 stdlib/map.cmx stdlib/map.p.cmx stdlib/map.$O stdlib/map.p.$O \
216 stdlib/marshal.cmx stdlib/marshal.p.cmx stdlib/marshal.$O stdlib/marshal.p.$O \
217 stdlib/moreLabels.cmx stdlib/moreLabels.p.cmx stdlib/moreLabels.$O stdlib/moreLabels.p.$O \
218 stdlib/nativeint.cmx stdlib/nativeint.p.cmx stdlib/nativeint.$O stdlib/nativeint.p.$O \
219 stdlib/obj.cmx stdlib/obj.p.cmx stdlib/obj.$O stdlib/obj.p.$O \
220 stdlib/oo.cmx stdlib/oo.p.cmx stdlib/oo.$O stdlib/oo.p.$O \
221 stdlib/parsing.cmx stdlib/parsing.p.cmx stdlib/parsing.$O stdlib/parsing.p.$O \
222 stdlib/pervasives.cmx stdlib/pervasives.p.cmx stdlib/pervasives.$O stdlib/pervasives.p.$O \
223 stdlib/printexc.cmx stdlib/printexc.p.cmx stdlib/printexc.$O stdlib/printexc.p.$O \
224 stdlib/printf.cmx stdlib/printf.p.cmx stdlib/printf.$O stdlib/printf.p.$O \
225 stdlib/queue.cmx stdlib/queue.p.cmx stdlib/queue.$O stdlib/queue.p.$O \
226 stdlib/random.cmx stdlib/random.p.cmx stdlib/random.$O stdlib/random.p.$O \
227 stdlib/scanf.cmx stdlib/scanf.p.cmx stdlib/scanf.$O stdlib/scanf.p.$O \
228 stdlib/sort.cmx stdlib/sort.p.cmx stdlib/sort.$O stdlib/sort.p.$O \
229 stdlib/stack.cmx stdlib/stack.p.cmx stdlib/stack.$O stdlib/stack.p.$O \
230 stdlib/stdLabels.cmx stdlib/stdLabels.p.cmx stdlib/stdLabels.$O stdlib/stdLabels.p.$O \
231 stdlib/std_exit.cmx stdlib/std_exit.p.cmx stdlib/std_exit.$O stdlib/std_exit.p.$O \
232 stdlib/stream.cmx stdlib/stream.p.cmx stdlib/stream.$O stdlib/stream.p.$O \
233 stdlib/string.cmx stdlib/string.p.cmx stdlib/string.$O stdlib/string.p.$O \
234 stdlib/stringLabels.cmx stdlib/stringLabels.p.cmx stdlib/stringLabels.$O stdlib/stringLabels.p.$O \
235 stdlib/sys.cmx stdlib/sys.p.cmx stdlib/sys.$O stdlib/sys.p.$O \
236 stdlib/weak.cmx stdlib/weak.p.cmx stdlib/weak.$O stdlib/weak.p.$O \
237 stdlib/$set.cmx stdlib/$set.p.cmx stdlib/$set.$O stdlib/$set.p.$O \
238 $LIBDIR
240 installlibdir \
241 stdlib/stdlib.$A stdlib/stdlib.p.$A \
242 $LIBDIR
244 echo "Installing ocamllex, ocamldebug..."
245 installbin lex/ocamllex$EXE $BINDIR/ocamllex$EXE
246 installbin debugger/ocamldebug$EXE $BINDIR/ocamldebug$EXE
247 installbin lex/ocamllex.opt$EXE $BINDIR/ocamllex.opt$EXE
248 installbin tools/ocamldep.native$EXE $BINDIR/ocamldep.opt$EXE
250 echo "Installing some tools..."
251 installbin tools/ocamlcp.byte$EXE $BINDIR/ocamlcp$EXE
252 installbin tools/ocamldep.byte$EXE $BINDIR/ocamldep$EXE
253 installbin tools/ocamlmklib.byte$EXE $BINDIR/ocamlmklib$EXE
254 installbin tools/ocamlmktop.byte$EXE $BINDIR/ocamlmktop$EXE
255 installbin tools/ocamlprof.byte$EXE $BINDIR/ocamlprof$EXE
256 installbin toplevel/expunge.byte$EXE $LIBDIR/expunge$EXE
257 installbin tools/addlabels.byte $LIBDIR/addlabels
258 installbin tools/scrapelabels.byte $LIBDIR/scrapelabels
259 installbin otherlibs/dynlink/extract_crc.byte $LIBDIR/extract_crc
260 installbin otherlibs/labltk/lib/labltk$EXE $BINDIR/labltk$EXE
261 installbin otherlibs/labltk/compiler/tkcompiler$EXE $BINDIR/tkcompiler$EXE
262 installbin otherlibs/labltk/browser/ocamlbrowser$EXE $BINDIR/ocamlbrowser$EXE
263 installbin otherlibs/labltk/compiler/pp$EXE $LIBDIR/labltk/pp$EXE
264 installbin otherlibs/labltk/lib/labltktop$EXE $LIBDIR/labltk/labltktop$EXE
266 echo "Installing libraries..."
267 installdir \
268 otherlibs/bigarray/bigarray.cma \
269 otherlibs/dbm/dbm.cma \
270 otherlibs/dynlink/dynlink.cma \
271 otherlibs/"$WIN32"graph/graphics.cma \
272 otherlibs/num/nums.cma \
273 otherlibs/str/str.cma \
274 otherlibs/"$WIN32"unix/unix.cma \
275 otherlibs/bigarray/bigarray.cmxa \
276 otherlibs/dbm/dbm.cmxa \
277 otherlibs/"$WIN32"graph/graphics.cmxa \
278 otherlibs/num/nums.cmxa \
279 otherlibs/str/str.cmxa \
280 otherlibs/"$WIN32"unix/unix.cmxa \
281 toplevel/toplevellib.cma \
282 otherlibs/systhreads/thread.mli \
283 otherlibs/systhreads/mutex.mli \
284 otherlibs/systhreads/condition.mli \
285 otherlibs/systhreads/event.mli \
286 otherlibs/systhreads/threadUnix.mli \
287 $LIBDIR
289 installdir \
290 otherlibs/labltk/support/fileevent.mli \
291 otherlibs/labltk/support/fileevent.cmi \
292 otherlibs/labltk/support/fileevent.cmx \
293 otherlibs/labltk/support/protocol.mli \
294 otherlibs/labltk/support/protocol.cmi \
295 otherlibs/labltk/support/protocol.cmx \
296 otherlibs/labltk/support/textvariable.mli \
297 otherlibs/labltk/support/textvariable.cmi \
298 otherlibs/labltk/support/textvariable.cmx \
299 otherlibs/labltk/support/timer.mli \
300 otherlibs/labltk/support/timer.cmi \
301 otherlibs/labltk/support/timer.cmx \
302 otherlibs/labltk/support/rawwidget.mli \
303 otherlibs/labltk/support/rawwidget.cmi \
304 otherlibs/labltk/support/rawwidget.cmx \
305 otherlibs/labltk/support/widget.mli \
306 otherlibs/labltk/support/widget.cmi \
307 otherlibs/labltk/support/widget.cmx \
308 otherlibs/labltk/support/tkthread.mli \
309 otherlibs/labltk/support/tkthread.cmi \
310 otherlibs/labltk/support/tkthread.cmo \
311 otherlibs/labltk/support/tkthread.$O \
312 otherlibs/labltk/labltk/*.mli \
313 otherlibs/labltk/labltk/*.cmi \
314 otherlibs/labltk/labltk/*.cmx \
315 otherlibs/labltk/camltk/*.mli \
316 otherlibs/labltk/camltk/*.cmi \
317 otherlibs/labltk/camltk/*.cmx \
318 otherlibs/labltk/frx/frxlib.cma \
319 otherlibs/labltk/frx/frxlib.cmxa \
320 otherlibs/labltk/frx/*.mli \
321 otherlibs/labltk/frx/*.cmi \
322 otherlibs/labltk/frx/*.cmx \
323 otherlibs/labltk/jpf/jpflib.cma \
324 otherlibs/labltk/jpf/jpflib.cmxa \
325 otherlibs/labltk/jpf/*.mli \
326 otherlibs/labltk/jpf/*.cmi \
327 otherlibs/labltk/jpf/*.cmx \
328 otherlibs/labltk/lib/labltk.cma \
329 otherlibs/labltk/lib/labltk.cmxa \
330 otherlibs/labltk/tkanim/*.mli \
331 otherlibs/labltk/tkanim/*.cmi \
332 otherlibs/labltk/tkanim/tkanim.cma \
333 otherlibs/labltk/tkanim/tkanim.cmxa \
334 $LIBDIR/labltk
336 installdir \
337 otherlibs/systhreads/threads.cma \
338 otherlibs/systhreads/threads.cmxa \
339 otherlibs/systhreads/thread.cmi \
340 otherlibs/systhreads/mutex.cmi \
341 otherlibs/systhreads/condition.cmi \
342 otherlibs/systhreads/event.cmi \
343 otherlibs/systhreads/threadUnix.cmi \
344 $LIBDIR/threads
346 installdir \
347 otherlibs/bigarray/dllbigarray$EXT_DLL \
348 otherlibs/dbm/dllmldbm$EXT_DLL \
349 otherlibs/"$WIN32"graph/dllgraphics$EXT_DLL \
350 otherlibs/num/dllnums$EXT_DLL \
351 otherlibs/str/dllstr$EXT_DLL \
352 otherlibs/systhreads/dllthreads$EXT_DLL \
353 otherlibs/"$WIN32"unix/dllunix$EXT_DLL \
354 otherlibs/threads/dllvmthreads$EXT_DLL \
355 otherlibs/labltk/support/dlllabltk$EXT_DLL \
356 otherlibs/labltk/tkanim/dlltkanim$EXT_DLL \
357 $STUBLIBDIR
359 installlibdir \
360 otherlibs/threads/libvmthreads.$A \
361 $LIBDIR/vmthreads
363 installdir \
364 otherlibs/threads/thread.cmi \
365 otherlibs/threads/thread.mli \
366 otherlibs/threads/mutex.cmi \
367 otherlibs/threads/mutex.mli \
368 otherlibs/threads/condition.cmi \
369 otherlibs/threads/condition.mli \
370 otherlibs/threads/event.cmi \
371 otherlibs/threads/event.mli \
372 otherlibs/threads/threadUnix.cmi \
373 otherlibs/threads/threadUnix.mli \
374 otherlibs/threads/threads.cma \
375 otherlibs/threads/stdlib.cma \
376 otherlibs/threads/unix.cma \
377 $LIBDIR/vmthreads
379 installlibdir \
380 otherlibs/labltk/support/liblabltk.$A \
381 otherlibs/labltk/lib/labltk.$A \
382 otherlibs/labltk/jpf/jpflib.$A \
383 otherlibs/labltk/tkanim/libtkanim.$A \
384 otherlibs/labltk/tkanim/tkanim.$A \
385 otherlibs/labltk/frx/frxlib.$A \
386 $LIBDIR/labltk
388 installlibdir \
389 otherlibs/bigarray/libbigarray.$A \
390 otherlibs/dbm/libmldbm.$A \
391 otherlibs/"$WIN32"graph/libgraphics.$A \
392 otherlibs/num/libnums.$A \
393 otherlibs/str/libstr.$A \
394 otherlibs/systhreads/libthreads.$A \
395 otherlibs/systhreads/libthreadsnat.$A \
396 otherlibs/"$WIN32"unix/libunix.$A \
397 $LIBDIR
399 echo "Installing object files and interfaces..."
400 installdir \
401 tools/profiling.cm[oi] \
402 toplevel/topstart.cmo \
403 toplevel/toploop.cmi \
404 toplevel/topdirs.cmi \
405 toplevel/topmain.cmi \
406 typing/outcometree.cmi \
407 otherlibs/graph/graphicsX11.cmi \
408 otherlibs/dynlink/dynlink.cmi \
409 otherlibs/num/arith_status.cmi \
410 otherlibs/num/big_int.cmi \
411 otherlibs/num/nat.cmi \
412 otherlibs/num/num.cmi \
413 otherlibs/num/ratio.cmi \
414 otherlibs/bigarray/bigarray.cmi \
415 otherlibs/dbm/dbm.cmi \
416 otherlibs/"$WIN32"graph/graphics.cmi \
417 otherlibs/str/str.cmi \
418 otherlibs/"$WIN32"unix/unix.cmi \
419 otherlibs/"$WIN32"unix/unixLabels.cmi \
420 otherlibs/num/arith_flags.cmx \
421 otherlibs/num/arith_flags.$O \
422 otherlibs/num/int_misc.cmx \
423 otherlibs/num/int_misc.$O \
424 otherlibs/num/arith_status.cmx \
425 otherlibs/num/arith_status.$O \
426 otherlibs/num/big_int.cmx \
427 otherlibs/num/big_int.$O \
428 otherlibs/num/nat.cmx \
429 otherlibs/num/nat.$O \
430 otherlibs/num/num.cmx \
431 otherlibs/num/num.$O \
432 otherlibs/num/ratio.cmx \
433 otherlibs/num/ratio.$O \
434 otherlibs/bigarray/bigarray.cmx \
435 otherlibs/bigarray/bigarray.$O \
436 otherlibs/dbm/dbm.cmx \
437 otherlibs/dbm/dbm.$O \
438 otherlibs/"$WIN32"graph/graphics.cmx \
439 otherlibs/"$WIN32"graph/graphics.$O \
440 otherlibs/str/str.cmx \
441 otherlibs/str/str.$O \
442 otherlibs/"$WIN32"unix/unix.cmx \
443 otherlibs/"$WIN32"unix/unix.$O \
444 otherlibs/"$WIN32"unix/unixLabels.cmx \
445 otherlibs/"$WIN32"unix/unixLabels.$O \
446 $LIBDIR
448 installlibdir \
449 otherlibs/bigarray/bigarray.$A \
450 otherlibs/dbm/dbm.$A \
451 otherlibs/"$WIN32"graph/graphics.$A \
452 otherlibs/num/nums.$A \
453 otherlibs/str/str.$A \
454 otherlibs/"$WIN32"unix/unix.$A \
455 stdlib/stdlib.$A \
456 $LIBDIR
458 installlibdir \
459 otherlibs/systhreads/threads.$A \
460 $LIBDIR/threads
462 echo "Installing manuals..."
463 (cd ../man && make install)
465 echo "Installing ocamldoc..."
466 installbin ocamldoc/ocamldoc $BINDIR/ocamldoc$EXE
467 installbin ocamldoc/ocamldoc.opt $BINDIR/ocamldoc.opt$EXE
469 installdir \
470 ../ocamldoc/ocamldoc.hva \
471 ocamldoc/*.cmi \
472 ocamldoc/odoc_info.mli ocamldoc/odoc_info.cm[ia] ocamldoc/odoc_info.cmxa \
473 ocamldoc/odoc_info.$A \
474 $LIBDIR/ocamldoc
476 installdir \
477 ocamldoc/stdlib_man/* \
478 $MANDIR/man3
480 echo "Installing camlp4..."
481 installbin camlp4/camlp4prof.byte$EXE $BINDIR/camlp4prof$EXE
482 installbin camlp4/mkcamlp4.byte$EXE $BINDIR/mkcamlp4$EXE
483 installbin camlp4/camlp4.byte$EXE $BINDIR/camlp4$EXE
484 installbin camlp4/camlp4boot.byte$EXE $BINDIR/camlp4boot$EXE
485 installbin camlp4/camlp4o.byte$EXE $BINDIR/camlp4o$EXE
486 installbin camlp4/camlp4of.byte$EXE $BINDIR/camlp4of$EXE
487 installbin camlp4/camlp4oof.byte$EXE $BINDIR/camlp4oof$EXE
488 installbin camlp4/camlp4orf.byte$EXE $BINDIR/camlp4orf$EXE
489 installbin camlp4/camlp4r.byte$EXE $BINDIR/camlp4r$EXE
490 installbin camlp4/camlp4rf.byte$EXE $BINDIR/camlp4rf$EXE
491 installbin camlp4/camlp4o.native$EXE $BINDIR/camlp4o.opt$EXE
492 installbin camlp4/camlp4of.native$EXE $BINDIR/camlp4of.opt$EXE
493 installbin camlp4/camlp4oof.native$EXE $BINDIR/camlp4oof.opt$EXE
494 installbin camlp4/camlp4orf.native$EXE $BINDIR/camlp4orf.opt$EXE
495 installbin camlp4/camlp4r.native$EXE $BINDIR/camlp4r.opt$EXE
496 installbin camlp4/camlp4rf.native$EXE $BINDIR/camlp4rf.opt$EXE
498 cd camlp4
499 CAMLP4DIR=$LIBDIR/camlp4
500 for dir in Camlp4Parsers Camlp4Printers Camlp4Filters Camlp4Top; do
501 echo "Installing $dir..."
502 mkdir -p $CAMLP4DIR/$dir
503 installdir \
504 $dir/*.cm* \
505 $dir/*.$O \
506 $CAMLP4DIR/$dir
507 done
508 installdir \
509 camlp4lib.cma camlp4lib.cmxa Camlp4.cmi \
510 camlp4fulllib.cma camlp4fulllib.cmxa \
511 camlp4o.cma camlp4of.cma camlp4oof.cma \
512 camlp4orf.cma camlp4r.cma camlp4rf.cma \
513 Camlp4Bin.cm[iox] Camlp4Bin.$O Camlp4Top.cm[io] \
514 Camlp4_config.cmi camlp4prof.cm[iox] camlp4prof.$O Camlp4_import.cmi \
515 $CAMLP4DIR
516 installlibdir camlp4lib.$A camlp4fulllib.$A $CAMLP4DIR
517 cd ..
519 echo "Installing ocamlbuild..."
521 cd ocamlbuild
522 installbin ocamlbuild.byte$EXE $BINDIR/ocamlbuild.byte$EXE
523 installbin ocamlbuild.native$EXE $BINDIR/ocamlbuild.native$EXE
524 installbestbin ocamlbuild.native$EXE ocamlbuild.byte$EXE $BINDIR/ocamlbuild$EXE
526 installlibdir \
527 ocamlbuildlib.$A \
528 $LIBDIR/ocamlbuild
530 installdir \
531 ocamlbuildlib.cmxa \
532 ocamlbuildlib.cma \
533 ocamlbuild_plugin.cmi \
534 ocamlbuild_pack.cmi \
535 ocamlbuild_unix_plugin.cmi \
536 ocamlbuild_unix_plugin.cmo \
537 ocamlbuild_unix_plugin.cmx \
538 ocamlbuild_unix_plugin.$O \
539 ocamlbuild_executor.cmi \
540 ocamlbuild_executor.cmo \
541 ocamlbuild_executor.cmx \
542 ocamlbuild_executor.$O \
543 ocamlbuild.cmo \
544 ocamlbuild.cmx \
545 ocamlbuild.$O \
546 $LIBDIR/ocamlbuild
547 cd ..
549 installdir \
550 ../ocamlbuild/man/ocamlbuild.1 \
551 $MANDIR/man1