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 0EC2F7EE78 for ; Tue, 12 Apr 2016 14:00:30 +0200 (CEST) IronPort-PHdr: 9a23:sJEbaxdxz5PcNEBq5HrfiWtIlGMj4u6mDksu8pMizoh2WeGdxc68Zh7h7PlgxGXEQZ/co6odzbGG4+a9ACdbvN6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDivcCKKF4VzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzRLlcRCk9PnourJngvBzHCA+O/Wc0U2MMkxMODRKTvz/gWZKkmSvgt/Fh3zGaCu1oQr0uEWCp771qUwPvkCdBNzk0/2zNotBtyahWuhagoVpzztiHM8muKPNic/aFLpshTm1bU5MJWg== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=christoph.hoeger@tu-berlin.de; spf=None smtp.mailfrom=christoph.hoeger@tu-berlin.de; spf=None smtp.helo=postmaster@mail.tu-berlin.de Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=pra; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of christoph.hoeger@tu-berlin.de) identity=mailfrom; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="christoph.hoeger@tu-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.tu-berlin.de) identity=helo; client-ip=130.149.7.33; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="christoph.hoeger@tu-berlin.de"; x-sender="postmaster@mail.tu-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BlAAAp4gxXkyEHlYJehQeoMpIzAQ2BdIdBOBQBAQEBAQEBAREBAQEBBw0JCSEvgi2CPg8BRTYCBRYLAgsDAgECAUsNBgIBAYgjBJ5Qj12SUnyRL4JWBZgIl0OFWo8nHgEBgXgBC1OBVGqKBQEBAQ X-IPAS-Result: A0BlAAAp4gxXkyEHlYJehQeoMpIzAQ2BdIdBOBQBAQEBAQEBAREBAQEBBw0JCSEvgi2CPg8BRTYCBRYLAgsDAgECAUsNBgIBAYgjBJ5Qj12SUnyRL4JWBZgIl0OFWo8nHgEBgXgBC1OBVGqKBQEBAQ X-IronPort-AV: E=Sophos;i="5.24,473,1454972400"; d="scan'208";a="173893352" Received: from mail.tu-berlin.de ([130.149.7.33]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2016 14:00:29 +0200 X-tubIT-Incoming-IP: 91.66.50.149 Received: from ip5b423295.dynamic.kabel-deutschland.de ([91.66.50.149] helo=[192.168.178.42]) by mail.tu-berlin.de (exim-4.76/mailfrontend-6) with esmtpsa [UNKNOWN:AES128-SHA:128] for id 1apwzb-0000ij-3q; Tue, 12 Apr 2016 14:00:28 +0200 To: caml users From: =?UTF-8?Q?Christoph_H=c3=b6ger?= Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_Berlin?= Message-ID: <570CE35A.4090709@tu-berlin.de> Date: Tue, 12 Apr 2016 14:00:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.4.12.115416 X-PMX-Spam: Gauge=IIIIIII, Probability=0%, Report='' Subject: [Caml-list] glob-ing dependencies for a custom ocamlbuild rule Dear all, I want to write a custom ocamlbuild rule that basically combines all source files from a given (sub-)directory and thus depends on these files. However, the following does not work: rule "normalize (preprocess) a Modelica library" ~prods:["%.modlib.impl"; "%.modlib.sign"] ~deps:["%.modlib/**/*.mo"; "%.modlib.depends"] ~doc:"Preprocesses a Modelica library" modlibc_command It seems that the rule does not expand the pattern in the dependency. Is there a way to achieve something similar? It would be a major PITA to add all these files manually... regards, Christoph -- Christoph Höger Technische Universität Berlin Fakultät IV - Elektrotechnik und Informatik Übersetzerbau und Programmiersprachen Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin Tel.: +49 (30) 314-24890 E-Mail: christoph.hoeger@tu-berlin.de