Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocaml and large development projects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-06-02 (22:00)
From: John Max Skaller <skaller@o...>
Subject: Re: [Caml-list] ocaml and large development projects
Markus Mottl wrote:

>The limitations / problems that appear with larger
> projects are mostly related to general issues concerning "make", which
> isn't a particularly well-suited tool for this purpose, but the only
> one which is reliably installed on most development platforms.

That really is NOT true. Make is NOT installed
on a wide class of platforms (Windows).

On the other hand Python is available for Windows
and most other platforms.

So why bother with crud like make, when you can
write a Python script?

I'm lazy, I just made a list of module,
and check the file times for where to start,
but there is no reason you can't write a more
sophisticated checker -- after all, you can

	os.system('ocamldep ' + filename)

to get dependencies, then build a dependency
tree from them in Python without that much fuss.

Yeah, of course .. you could use Ocaml instead
of Python .. and that is GUARRANTEED to be installed,
since you're using it, right?

So unless I'm totally wrong .. for a single directory
build you could make a harness:

	ocamlbuild prog1 prog2 ..

that would just work, no makefile needed.

John Max Skaller,
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: