From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id F2280BB9C for ; Mon, 5 Dec 2005 23:09:10 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB5M9AAK008879 for ; Mon, 5 Dec 2005 23:09:10 +0100 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 XAA28830 for ; Mon, 5 Dec 2005 23:09:09 +0100 (MET) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB5M99bF008872 for ; Mon, 5 Dec 2005 23:09:09 +0100 Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 3F3A5D1FC72 for ; Mon, 5 Dec 2005 17:09:07 -0500 (EST) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Mon, 05 Dec 2005 17:09:07 -0500 X-Sasl-enc: VHTeT18bKW7vxv/Rz/tWN0RT1xzsMB0W2EDh1hWEkCh9 1133820545 Received: from munge (burnham.ljcrf.edu [192.231.106.2]) by frontend2.messagingengine.com (Postfix) with ESMTP id D8572571482 for ; Mon, 5 Dec 2005 17:09:04 -0500 (EST) Date: Mon, 5 Dec 2005 14:08:44 -0800 (PST) From: Martin Jambon X-X-Sender: martin@munge To: caml-list@inria.fr Subject: ocamlfind + ocamldep + camlp4? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at nez-perce with ID 4394BA86.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4394BA85.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlfind:01 ocamldep:01 camlp:01 ocamlfind:01 camlp:01 dependencies:01 ocamlc:01 -package:01 ocamldep:01 preprocess:01 syntax:01 dependencies:01 ocaml:01 lib:01 lib:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Hello, I would like to know if there is a way of using ocamlfind as front-end to camlp4o alone. Let me explain: the following works nicely since it will locate the pa_someext package and load its dependencies: ocamlfind ocamlc -c -syntax camlp4o -package pa_someext file.ml but how to tell ocamldep to preprocess file.ml using camlp4o and the wanted syntax modules, without listing all the include directories and dependencies? OCamlMakefile solves this by reading the first line of the OCaml files. That works, but ocamlfind doesn't help here, so all directories of the camlp4 extensions (direct + dependent) must be specified, which is impractical. That would be something like: (*pp ./pp-command *) where pp-command would be: #!/bin/sh camlp4o -I /path/to/lib1 lib1.cma \ -I /path/to/lib2 lib2.cma \ -I /path/to/pa_someext pa_someext.cmo $* where lib1 and lib2 are required by pa_someext. Instead, it would be nice to write only: (*pp ocamlfind camlp4o -package pa_someext *) Thanks, Martin -- Martin Jambon, PhD http://martin.jambon.free.fr Store and share your bioinformatics tips at http://wikiomics.org