Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] make
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] make
On Tue, 2004-10-19 at 23:02, Nicolas Cannasse wrote:
> > I have a problem with writing makefiles for OCaml and with compilation
> > order. Probably a FAQ.
> >
> > Searching the caml-list archives I've found info about a tool by
> > Nicolas Cannesse (ocamake) that can be used to compile a set of ml
> > files into an executable or to generate a makefile such that a
> > subsequent make command will construct the executable. However this is
> > not quite what I want.
> [...]
> > Does such a tool exists? Does ocamldep already knows to do this and I
> > didn't found it in the docs? Thanks.
> 
> This is not a FAQ and still an open problem.
[..]

However the problem you are refering to is not the problem that
Radu is refering to.

Radu needs to make changes to the makefile, and even if ocamake,
or some other makefile generator, gets the order right, his
changes are clobbered when he reruns it.

This is a problem for most generators. Some provide a template,
but that is a weak solution.

In addition, Radu mentions patching nuweb to allow for the fact
Ocaml can't accept #line spelled as such. The reason it doesn't
is that # is the symbol used in object # method syntax, and so
that usage is ambiguous. # digits is not.

You could try interscript. It already knows Ocaml.
The makefile clobbering problem also just goes away,
since you can use any Python script you like from
within your literate programmed documents to generate
anything you want. The main problem is that it's a bit slow,
compared to some other LP tools (it's written in Python).

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners