caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlbuild pattern language OR
@ 2016-10-06 15:42 Christoph Höger
  2016-10-07  1:23 ` Gabriel Scherer
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Höger @ 2016-10-06 15:42 UTC (permalink / raw)
  To: caml users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-07  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-06 15:42 [Caml-list] ocamlbuild pattern language OR Christoph Höger
2016-10-07  1:23 ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).