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 WAA19366; Mon, 18 Aug 2003 22:36:32 +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 WAA24586 for ; Mon, 18 Aug 2003 22:36:31 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7IKaVT23507 for ; Mon, 18 Aug 2003 22:36:31 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19oqju-0002Lz-00 for ; Mon, 18 Aug 2003 21:36:30 +0100 Date: Mon, 18 Aug 2003 21:36:30 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Generating module lists automatically Message-ID: <20030818203630.GA9019@redhat.com> References: <63491.141.155.88.179.1061233365.squirrel@minsky-primus.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63491.141.155.88.179.1061233365.squirrel@minsky-primus.homeip.net> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 0400,:01 yaron:01 minsky:01 dependencies:01 fwiw:01 ocamldep:01 mli:01 freshmeat:01 ltd:98 executables:01 arch:02 linking:02 business:96 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Aug 18, 2003 at 03:02:45PM -0400, Yaron Minsky wrote: > Does anyone have a reasonable solution to the problem of automatically > generating dependencies and topologically sorted module lists for > executables? omake seems to do a good job for managing dependencies > between automatically, but I don't see any good way of generating a > topologically sorted list of names automatically within omake. Camlmake > (http://www.davidb.org/camlmake/) seems to be the right kind of thing, but > does not appear to be maintained anymore. I'm wondering if there are any > other good options out there. I may be missing the point of your email, but FWIW this is what I'm using in my Makefiles now: dep: .depend depend: .depend .depend: rm -f .depend ocamldep $(OCAMLCINCS) *.mli *.ml > $@ ifeq ($(wildcard .depend),.depend) include .depend endif .PHONY: dep depend My object files are already sorted (by hand) so linking just works. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. MONOLITH is an advanced framework for writing web applications in C, easier than using Perl & Java, much faster and smaller, reusable widget-based arch, database-backed, discussion, chat, calendaring: http://www.annexia.org/freeware/monolith/ ------------------- 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