From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA13991; Wed, 20 Oct 2004 02:28:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA13718 for ; Wed, 20 Oct 2004 02:28:41 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9K0SddD011134 for ; Wed, 20 Oct 2004 02:28:40 +0200 Received: from [192.168.1.200] (ppp217-99.lns1.syd3.internode.on.net [203.122.217.99]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i9K0STOU058977; Wed, 20 Oct 2004 09:58:30 +0930 (CST) Subject: Re: [Caml-list] make From: skaller Reply-To: skaller@users.sourceforge.net To: Nicolas Cannasse Cc: Radu Grigore , caml-list In-Reply-To: <003301c4b5db$f5a87620$0c05a8c0@PWARP> References: <7f8e92aa041019054919917bef@mail.gmail.com> <003301c4b5db$f5a87620$0c05a8c0@PWARP> Content-Type: text/plain Message-Id: <1098232109.30701.77.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 20 Oct 2004 10:28:29 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4175B137.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 cannasse:01 faq:01 caml-list:01 ocamake:01 ocamldep:01 faq:01 ocamake:01 patching:01 spelled:99 interscript:01 python:01 python:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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