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] Building large and portable projects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-20 (19:56)
From: sylvain.le-gall@p...
Subject: Re: [Caml-list] Building large and portable projects

On Thu, Nov 20, 2003 at 07:47:25PM +0100, Martin Jambon wrote:
> Hi,
> Is there a convenient way to develop OCaml code, and be sure that 
> this code will be configurable, compilable, installable and 
> executable without changes, on any environment where OCaml is available?

The only way is to use only pure ocaml code ( not C binding ). With this
you are pretty sure not to have any problem. (Exclude for example Unix,
Dbm modules ).

> I imagine a higher level "make", with most of its nicer properties, plus 
> many enhancements.
> The following points seem important to me:
> - target dependency system
> - ease of use, nice syntax (for average humans with a simple text editor)
> - loadable modules
> - built-in programming language
> - built-in fileutils (cp, mv, cd, rm, ...) and functions (filters, ...)
... Try ocaml-fileutils ...
> - universal paths for filenames inside the project tree
... Try ocaml-fileutils ...
> - natural highlighting of environment-dependent elements
> - possibility of harmonious integration in a graphical development 
>   environment
> and also a very flexible license that allows its free redistribution and 
> modification under any form.
> Until right now I didn't find anything like this. And I was really scared 
> when I discovered Apache Ant.

Well let me give you some hints :
Ocaml fileutils is a lib of mine ( not yet published, but if you want to
test it, i can give you the tar ball ).

In fact, my aim is to construct approximativelly what you are looking for 
but for now, i have not yet the time to go over the whole things. 

Ocaml-fileutils is the base path abstraction for files and fileutils.
Ocaml-preprocessor is a replacement for *.in -> * ( already developped,
very simple, it is something were you bind variable and function and
you pass it on files where there is for example @funct "abcd"@ and it
replace it with the result of the binding of funct "abcd"... ). It is
also not yet published, but it seems stable to me.

I want to develop the makefile in ML. Each module will register
variable, target, dependency and a big program will run to compute all
this and compile file, lib, exec...

For now, it is only at an early stage ( i have some lexer/parser to
autosort ocamldep generated file and try to figure how to compile only
one thing ).

If you are intersted, just drop me an email, to have more information,
or if you want to test ocaml-fileutils or ocaml-preprocessor.

Kind regard
Sylvain LE GALL

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