Browse thread
ocamlbuild adding directories arguments to a tool with tags
-
Daniel_BĂĽnzli
- Daniel_BĂĽnzli
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2010-07-14 (15:37) |
From: | Daniel_BĂĽnzli <daniel.buenzli@e...> |
Subject: | Re: ocamlbuild adding directories arguments to a tool with tags |
> 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