From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA01718 for caml-redistribution; Wed, 24 Nov 1999 23:23:17 +0100 (MET) 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 VAA10529 for ; Wed, 24 Nov 1999 21:49:58 +0100 (MET) Received: from miss.wu-wien.ac.at (miss.wu-wien.ac.at [137.208.107.17]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id VAA18000 for ; Wed, 24 Nov 1999 21:49:57 +0100 (MET) Received: (from mottl@localhost) by miss.wu-wien.ac.at (8.9.0/8.9.0) id VAA06574; Wed, 24 Nov 1999 21:49:50 +0100 (MET) From: Markus Mottl Message-Id: <199911242049.VAA06574@miss.wu-wien.ac.at> Subject: Re: OCaml makefile template comments To: David.Mentre@irisa.fr (David =?iso-8859-1?q?Mentré?=) Date: Wed, 24 Nov 1999 21:49:50 +0100 (MET) Cc: caml-list@inria.fr (OCAML) In-Reply-To: from "David =?iso-8859-1?q?Mentré?=" at Nov 24, 99 11:12:07 am X-Mailer: ELM [version 2.4 PL21] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: weis > Does anybody know a good makefile model to compile in subdirs > (without recursive makefile) for OCaml? Is there a particular reason for objecting to recursive makefiles? Actually, projects that are spread over several directories have always been a bit awkward to handle with the traditional "make". The easiest solution is in most cases to have a specialized makefile in each directory, which possibly makes use of some "meta-makefile". I am not sure whether you have tried "OcamlMakefile" before (it strongly relies on recursive invocation), but it has so far been appropriate for just about any project I have undertaken. In general, the specialized makefiles only require a few (=5-10) lines of code. Here an example from the distribution: --------------------------------------------------------------------------- OCAMLMAKEFILE = ../OcamlMakefile SOURCES = test_impl.c test.idl parser.mly lexer.mll calc.ml RESULT = calc THREADS = yes -include $(OCAMLMAKEFILE) --------------------------------------------------------------------------- For more infos, see: http://miss.wu-wien.ac.at/~mottl/ocaml_sources/intro.html Regards, Markus -- Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl