[Omake] implicit rules with different scopes
Aleksey Nogin
nogin at metaprl.org
Tue Oct 2 13:55:55 PDT 2007
On 02.10.2007 13:31, Matthieu Dubuget wrote:
> I can't figure out a simple way to have both: special scope for some
> files, but still using implicit rules?
>
> For example, I would like to let OMake apply implicit rules with a
> special environment (for example special OCAMLFLAGS) when working with
> file1.ml and apply the same implicit rules with another environment when
> working with file2.ml.
>
> Both files are in the same directory.
Matt,
You can "pin" a specific target to a particular environment by giving an
empty dependency for it.
E.g.
section
OCAMLFLAGS = ...
file1.cmo file1.o file1.cmi file1.cmx:
would cause file1 to be built with a different set of OCAMLFLAGS than
all other files.
Aleksey
More information about the Omake
mailing list