From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 1E4C67EEBF for ; Sun, 2 Aug 2015 21:45:46 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jordojw@gmail.com) identity=pra; client-ip=209.85.217.170; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jordojw@gmail.com"; x-sender="jordojw@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of jordojw@gmail.com designates 209.85.217.170 as permitted sender) identity=mailfrom; client-ip=209.85.217.170; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jordojw@gmail.com"; x-sender="jordojw@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-lb0-f170.google.com) identity=helo; client-ip=209.85.217.170; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jordojw@gmail.com"; x-sender="postmaster@mail-lb0-f170.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0D3DwBgcr5Vm6rZVdFbGQGDHzVpBoMdoWOHfIQyinCCDSABAYcaB0wBAQEBAQESAQEBAQEGCwsJISMLhDwRHQEbHgMSCQEGNwIkAREBBQEiNYd2AQMSogaCBYEuPjGLP4FsgnmKXAoZJw1XhQABBQ6SfgwvEoExBY1BhziEe4dRgg2QEYVeEiOBFxEGhCweMYJMAQEB X-IPAS-Result: A0D3DwBgcr5Vm6rZVdFbGQGDHzVpBoMdoWOHfIQyinCCDSABAYcaB0wBAQEBAQESAQEBAQEGCwsJISMLhDwRHQEbHgMSCQEGNwIkAREBBQEiNYd2AQMSogaCBYEuPjGLP4FsgnmKXAoZJw1XhQABBQ6SfgwvEoExBY1BhziEe4dRgg2QEYVeEiOBFxEGhCweMYJMAQEB X-IronPort-AV: E=Sophos;i="5.15,596,1432591200"; d="scan'208";a="141839748" Received: from mail-lb0-f170.google.com ([209.85.217.170]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 02 Aug 2015 21:45:45 +0200 Received: by lblf12 with SMTP id f12so68528272lbl.2 for ; Sun, 02 Aug 2015 12:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=277GxR8c5rSqCNA3Z/ez0xAHvzwt3RspiF5zl5lgvIg=; b=PWNibxxAKNmQET9RKgN3B92nqekznGuVRq4ptUA0oE04bZkygiGbHpNCEgyUWMuTeV ov/05B1T4WSitOWZk1+96Xa0oSuo0LfEOrqK1O6WMtglZ2g/nQpoXlivhCRb3VwkDu46 82ImnHaRDYNHRRh23le01rdrMmM1D53CAY8tPLErmaogiRZ8yQ8g4kKs6Qh7w8gWo98O 0eUq2p/h9RE5nWqiaNcn8ReAt/Kqc6AkZauD2GeYPieLBWproNGl5amBhHGwtJifmwBt ZdBnTcbZsWElMo3JJaiGeTOcJpiE7FMbtpAi5gxKM+PURvo2uLTw+2hlqwu/hv7s5N0a FgWQ== MIME-Version: 1.0 X-Received: by 10.112.163.226 with SMTP id yl2mr13681848lbb.100.1438544744470; Sun, 02 Aug 2015 12:45:44 -0700 (PDT) Received: by 10.25.18.22 with HTTP; Sun, 2 Aug 2015 12:45:44 -0700 (PDT) Date: Sun, 2 Aug 2015 12:45:44 -0700 Message-ID: From: Jordan W To: "caml-list@inria.fr" Content-Type: multipart/alternative; boundary=089e0115fffa7cde77051c594ca6 X-Validation-by: jordojw@gmail.com Subject: [Caml-list] A way to have certain file suffixes treated as .ml/.mli with ocamlbuild. --089e0115fffa7cde77051c594ca6 Content-Type: text/plain; charset=UTF-8 Hello, Is there a way to have certain files, with particular suffixes, treated as .ml/.mli respectively with ocamlbuild? I understand that ocaml compiler itself supports -intf/-impl/-intf-suffix, but it's not clear that ocamlbuild will allow use of these. Specifically, here is how all of the ocamlc/ocamldep/* suite of commands should be effected by the file extension: */*.xyz ocamlc/ocamldep -pp convertXyzProgram -impl theFile.xyz -intf-suffix xyzi */*.xyzi ocamlc/ocamldep -pp convertXyzProgram -intf theFile.xyzi Is there a way to do this with _tags or possibly resorting to a myocamlbuild.ml? I would be satisfied with a myocamlbuild rule that *moves* the .xyz to a .ml, but in that case errors are reported in terms of the generated .ml and not the original .xyz, which is unfortunate. I know the ocaml compler supports this, but does ocamlbuild? Jordan --089e0115fffa7cde77051c594ca6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Is there a way to have certain f= iles, with particular suffixes, treated as .ml/.mli respectively with ocaml= build? I understand that ocaml compiler itself supports -intf/-impl/-intf-s= uffix, but it's not clear that ocamlbuild will allow use of these.

Specifically, here is how all of the ocamlc/ocamldep/*= suite of commands should be effected by the file extension:

=
*/*.xyz

ocamlc/ocamldep=C2=A0=C2=A0-pp convertXyzProgram = -impl theFile.xyz -intf-suffix xyzi

*/*.xyzi

ocamlc/ocamldep -pp convertXyzProgram -intf theFile= .xyzi


Is there a way to do this= with _tags or possibly resorting to a m= yocamlbuild.ml? I would be satisfied with a myocamlbuild rule that *mov= es* the .xyz to a .ml, but in that case errors are reported in terms of the= generated .ml and not the original .xyz, which is unfortunate. I know the = ocaml compler supports this, but does ocamlbuild?

= Jordan
--089e0115fffa7cde77051c594ca6--