From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: caml-list@inria.fr
Subject: Re: ocamlbuild adding directories arguments to a tool with tags
Date: Wed, 14 Jul 2010 17:37:49 +0200 [thread overview]
Message-ID: <AANLkTilt14trcr655O0M8c173AsqT22qPWMbFpz_9ym8@mail.gmail.com> (raw)
In-Reply-To: <AANLkTike0thFE1n6RbWwCjYBW-SZ4gcqvUmXGYlaSnMj@mail.gmail.com>
> I would like to be able to specify
>
> <d> : mytool:include
>
> So that when mytool is invoked it is invoked for example with
>
> mytool -dir d
An alternate way of doing that is to tag the .ext files the tools act
upon with :
<**/.*ext> : dir(d)
And have the following pflag rule :
pflag ["mytool"] "dir" (fun d -> S [ A "-dir"; P d])
Of course the rules that invoke mytool should add the tag "mytool" to
the command tags.
Best,
Daniel
prev parent reply other threads:[~2010-07-14 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 23:47 Daniel Bünzli
2010-07-14 15:37 ` Daniel Bünzli [this message]
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=AANLkTilt14trcr655O0M8c173AsqT22qPWMbFpz_9ym8@mail.gmail.com \
--to=daniel.buenzli@erratique.ch \
--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