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 SAA25319; Tue, 2 Dec 2003 18:48:15 +0100 (MET) 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 SAA24986 for ; Tue, 2 Dec 2003 18:48:14 +0100 (MET) Received: from mwinf0501.wanadoo.fr (smtp5.wanadoo.fr [193.252.22.26]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB2HmE105281 for ; Tue, 2 Dec 2003 18:48:14 +0100 (MET) Received: from debian (ca-bordeaux-10-244.w80-8.abo.wanadoo.fr [80.8.82.244]) by mwinf0501.wanadoo.fr (SMTP Server) with ESMTP id 00E044000B7 for ; Tue, 2 Dec 2003 18:48:14 +0100 (CET) Received: from moi by debian with local (Exim 3.36 #1 (Debian)) id 1AREdH-0004qJ-00 for ; Tue, 02 Dec 2003 18:48:19 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Ocamldep too "gentle". References: <20031202162658.GC27151@davidb.org> From: Remi Vanicat Mail-Copy-To: never Date: Tue, 02 Dec 2003 18:48:18 +0100 In-Reply-To: <20031202162658.GC27151@davidb.org> (David Brown's message of "Tue, 2 Dec 2003 08:26:58 -0800") Message-ID: <87y8tvxg9p.dlv@wanadoo.fr> User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamldep:01 caml-list:01 ocamldep:01 cmx:01 cmo:01 writes:01 remi:01 remi:01 vanicat:01 vanicat:01 ocamlyacc:05 ocamllex:05 output:05 source:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk David Brown writes: > I'm having a problem with ocamldep being too "gentle". I have a file > units.ml that is generated with extract_crc. The problem is that > ocamldep gets run at the beginning of the make, when units.ml doesn't > yet exist. ocamldep doesn't output the dependency on units.cmo and > units.cmx because it can't find the source file. The solution is to generate units.ml before generating the dependency.... You could try to look at what the OcamlMakefile do for ocamllex and ocamlyacc generated ml file. -- Rémi Vanicat ------------------- 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