caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus@mail4.ai.univie.ac.at>
To: Jeremy Fincher <tweedgeezer@hotmail.com>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] creating multiple executables with OcamlMakefile
Date: Sat, 6 Oct 2001 22:39:49 +0200	[thread overview]
Message-ID: <20011006223949.A10216@fichte.ai.univie.ac.at> (raw)
In-Reply-To: <F171S4defzi5ZYFehZR00007278@hotmail.com>; from tweedgeezer@hotmail.com on Sat, Oct 06, 2001 at 15:03:29 -0400

On Sat, 06 Oct 2001, Jeremy Fincher wrote:
> I have a body of code from which I'd like to compile several
> executables.  What's the best way to do this with the OcamlMakefile?

It's not particularly well-suited for this purpose. The best (or at
least cleanest) solution probably is to have a separate Makefile for each
target kind and to use "make -f" to specify the needed one. On the command
line this can be handled elegantly with shell aliases, in Makefiles or
scripts it does not really hurt to write out the name anyway. You can
also try the "meta rule"-approach as in the "threads"-example in the
OcamlMakefile-distribution, but it's really a bit messy to specify two
projects (or target kinds) in one file.

Regards,
Markus Mottl

-- 
Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-10-06 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-06 19:03 Jeremy Fincher
2001-10-06 20:39 ` Markus Mottl [this message]

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=20011006223949.A10216@fichte.ai.univie.ac.at \
    --to=markus@mail4.ai.univie.ac.at \
    --cc=caml-list@pauillac.inria.fr \
    --cc=tweedgeezer@hotmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).