From: skaller <skaller@users.sourceforge.net>
To: Nicolas Cannasse <warplayer@free.fr>
Cc: Radu Grigore <radugrigore@gmail.com>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] make
Date: 20 Oct 2004 10:28:29 +1000 [thread overview]
Message-ID: <1098232109.30701.77.camel@pelican.wigram> (raw)
In-Reply-To: <003301c4b5db$f5a87620$0c05a8c0@PWARP>
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
next prev parent reply other threads:[~2004-10-20 0:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 12:49 Radu Grigore
2004-10-19 13:02 ` Nicolas Cannasse
2004-10-20 0:28 ` skaller [this message]
2004-10-19 13:16 ` Julien Signoles
2004-10-19 13:35 ` Radu Grigore
2004-10-19 19:12 ` noweb/nuweb (was: Re: [Caml-list] make) David MENTRE
2004-10-20 5:08 ` Radu Grigore
2004-10-21 11:12 ` [Caml-list] ocamldsort and directories Richard Jones
2004-10-22 18:04 ` Dimitri Ara
2004-10-19 14:48 ` [Caml-list] make Eric C. Cooper
2004-10-19 23:23 ` skaller
2004-10-21 2:41 ` Aleksey Nogin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1098232109.30701.77.camel@pelican.wigram \
--to=skaller@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=radugrigore@gmail.com \
--cc=warplayer@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox