Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild and packs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] ocamlbuild and packs
Excerpts from Romain Bardou's message of Thu Jan 31 15:04:18 +0100 2008:
> > Using  -for-pack  is  a pain. If your project is not too complex, I can advise
> > to use your _tags that way:
> > 
> > $ cat _tags
> > <bl{a,i}/**/*.ml>: for-pack(Blabli)
> > # This is to avoid -I bli
> > "bli": include
> > 
> > If you need more precise scoping, plugin is your last option.
> 
> I want to pack all the files in bla and bli together anyway, so this 
> solution would be great; however, now ocamldep gives me an error:
> 
>     /usr/local/bin/ocamldep.opt: unknown option `-for-pack'.
> 
> Btw, wouldn't the line including "bli" result in the same problem as 
> before, with name clashes between the files in "/bli" and the files in "/"?
> 
> I'll investigate and try to add the include option only on the files in 
> bl{a,i}, using some tags or some plugin.

If there is name clashes you need a plugin that basically says:

...
Pathname.define_context "bla" ["bla"; "bli"]
...

-- 
Nicolas Pouillard aka Ertai