caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] glob-ing dependencies for a custom ocamlbuild rule
@ 2016-04-12 12:00 Christoph Höger
  2016-04-12 12:48 ` Gabriel Scherer
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Höger @ 2016-04-12 12:00 UTC (permalink / raw)
  To: caml users

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

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

end of thread, other threads:[~2016-04-12 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 12:00 [Caml-list] glob-ing dependencies for a custom ocamlbuild rule Christoph Höger
2016-04-12 12:48 ` Gabriel Scherer
2016-04-12 12:59   ` Christoph Höger
2016-04-12 13:15     ` Ashish Agarwal
2016-04-12 15:33       ` 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).