From: "Christoph Höger" <christoph.hoeger@tu-berlin.de>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] glob-ing dependencies for a custom ocamlbuild rule
Date: Tue, 12 Apr 2016 14:00:26 +0200 [thread overview]
Message-ID: <570CE35A.4090709@tu-berlin.de> (raw)
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
next reply other threads:[~2016-04-12 12:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-12 12:00 Christoph Höger [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570CE35A.4090709@tu-berlin.de \
--to=christoph.hoeger@tu-berlin.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox