From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 9878E7FA5F for ; Tue, 31 Jan 2017 22:50:11 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.33,316,1477954800"; d="scan'208";a="258294641" Received: from bou78-2-82-240-46-163.fbx.proxad.net (HELO MP-41019.local) ([82.240.46.163]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 31 Jan 2017 22:50:11 +0100 To: caml-list@inria.fr From: =?UTF-8?Q?Fran=c3=a7ois_Pottier?= Cc: github@mjambon.com, Gabriel Scherer Message-ID: <58910692.1060706@inria.fr> Date: Tue, 31 Jan 2017 22:50:10 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [Caml-list] cppo, ocamlbuild, and dependencies Dear OCaml users, I am trying to use cppo and ocamlbuild together. Suppose the file a.cppo.ml contains the line: #include "b.cppo.ml". Then, the build fails. As far as I understand, ocamlbuild is not aware of the dependency a.cppo.ml -> b.cppo.ml, so the source file b.cppo.ml is not even copied to the _build directory. I am using the build rules bundled with cppo (in the module Ocamlbuild_cppo). Shouldn't these build rules be improved so as to perform a genuine dependency computation? Has anyone run into this issue? Thanks, -- François Pottier francois.pottier@inria.fr http://gallium.inria.fr/~fpottier/