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 788EE7FFE1 for ; Thu, 6 Oct 2016 17:42:13 +0200 (CEST) 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 IronPort-PHdr: =?us-ascii?q?9a23=3A0pOCaBXkxgqKDdWt1y+P7WkF27HV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZhGBt8tkgFKBZ4jH8fUM07OQ6PG6HzdaqsbR+Fk5M7V0Hycfjs?= =?us-ascii?q?sXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJP?= =?us-ascii?q?K/jvHcaK1oLshrr0oMeYM1UArQH+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf?= =?us-ascii?q?9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK7zeqBwUKdVFi9uZ2s84cmusRjY?= =?us-ascii?q?USOO4GEdWyMYiEwbLRLC6UTRXo3wqTf9rupK+LeVMNe+Gbs0QzW586BzSFnojy?= =?us-ascii?q?oIOiQR7HySgMFqiKNd5h6s8U8si7XIaZ2YYaItNpjWeskXEDJM?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AlAQCsb/ZXhyEHlYJcHgYMGRgHgwUBA?= =?us-ascii?q?QEBAYEfUqR+k1+CC4gWOhIBAQEBAQEBAQEBARIBAQEIDQkJGS+CMhiCQQ8BewI?= =?us-ascii?q?mAl8NBgIBAYhKBKF+j2yNIYEHhzKKI4JbBZl/iSyQNIYPkHYlCoMJAQEIAgFWg?= =?us-ascii?q?WBwiEABAQE?= X-IPAS-Result: =?us-ascii?q?A0AlAQCsb/ZXhyEHlYJcHgYMGRgHgwUBAQEBAYEfUqR+k1+?= =?us-ascii?q?CC4gWOhIBAQEBAQEBAQEBARIBAQEIDQkJGS+CMhiCQQ8BewImAl8NBgIBAYhKB?= =?us-ascii?q?KF+j2yNIYEHhzKKI4JbBZl/iSyQNIYPkHYlCoMJAQEIAgFWgWBwiEABAQE?= X-IronPort-AV: E=Sophos;i="5.31,454,1473112800"; d="scan'208";a="195876639" 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; 06 Oct 2016 17:42:12 +0200 X-tubIT-Incoming-IP: 91.66.17.232 Received: from ip5b4211e8.dynamic.kabel-deutschland.de ([91.66.17.232] helo=[192.168.178.42]) by mail.tu-berlin.de (exim-4.84_2/mailfrontend-7) with esmtpa for id 1bsAoF-0002jF-0w; Thu, 06 Oct 2016 17:42:12 +0200 To: caml users From: =?UTF-8?Q?Christoph_H=c3=b6ger?= Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_Berlin?= Message-ID: <838cb092-c371-2c79-75f6-7193e6ed6396@tu-berlin.de> Date: Thu, 6 Oct 2016 17:42:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 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.10.6.153316 X-PMX-Spam: Gauge=IIIIIII, Probability=0%, Report='' Subject: [Caml-list] ocamlbuild pattern language OR Dear all, I am in the process of writing a set of ocamlbuild rules. In order to simplify some rules, I'd wanted to merge them (as the invoked tool dispatches over the file extension anyway). However, I fail to create an OR-pattern in the rule-declaration: rule "description" ~prods:["%.out"] ~deps:["%.{foo,bar}"] (* tried _tags syntax, does not work *) ~doc:"Generate *.out from *.foo or *.bar" make_out_command ; Does anyone know how to solve this? thanks, 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