English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] Building O'Caml projects properly.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-01 (14:02)
From: Jeremy Fincher <tweedgeezer@h...>
Subject: Re: [Caml-list] Building O'Caml projects properly.
> > Actually, it might be the difference in default behavior of the
> > `install' command. On my MacOS X, it moves the files by default,
> > where on my Linux box, they get copied.
>Ah, ok, I didn't expect that there are versions of the install command
>that actually move files by default (what a horrible idea!).
> > Adding `-c' option to the install command in OcamlMakefile would do
> > the trick I think.
>Since I don't have access to any MacOS-box, I can only trust you here.
>I have added this flag now and hope that this fixes this problem with
>exotic "install"-implementations.

I just checked the manpage for install on my box, and it's true -- -c
copies the file, instead of the default behavior which is to remove the
original file after creating the target.

This is a FreeBSD 4.3 box.  I think it's a peculiarity of the BSD
"install", since it's not localized to MacOS X.

Are there any known workarounds with the current OcamlMakefile, or will
there be a new version released shortly that compensates for this?

Also, you mentioned in your other email that I need to make a "real
library" out of my py_string.ml{,i} files.  Here's the exact Makefile
I'm using for that set of modules:

OCAMLMAKEFILE = ../../OcamlMakefile

SOURCES = py_string.ml py_os.ml py_fnmatch.ml py_glob.ml py_time.ml 
py_socket.ml py_asyncore.ml py_asynchat.ml
RESULT = a.out
LIBS = unix pcre
LIBDIRS = ../../lib
INCDIRS = ../../lib
LIBINSTALL_FILES = *.mli *.cmi *.cma *.cmo *.cmx *.cmxa *.a *.o

all:	byte-code-library native-code-library


What do I need to add to make it compile a real library?


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr