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 WAA06772; Sat, 6 Oct 2001 22:39:54 +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 WAA06733 for ; Sat, 6 Oct 2001 22:39:53 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f96KdqD14044 for ; Sat, 6 Oct 2001 22:39:52 +0200 (MET DST) Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id WAA14335; Sat, 6 Oct 2001 22:39:49 +0200 Date: Sat, 6 Oct 2001 22:39:49 +0200 From: Markus Mottl To: Jeremy Fincher Cc: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] creating multiple executables with OcamlMakefile Message-ID: <20011006223949.A10216@fichte.ai.univie.ac.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from tweedgeezer@hotmail.com on Sat, Oct 06, 2001 at 15:03:29 -0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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