samoht / assemblage

A collection of tools to manage the configuration of OCaml projects
54 stars 4 forks source link

ocamlfind all uses should be `Indirect #89

Closed dbuenzli closed 10 years ago

dbuenzli commented 10 years ago

If I'm not mistaken there are still some Direct usage of ocamlfind in the setup generation (e.g. package lookup with -r), I think we should move away from that. (because we may want to distribute Makefiles and because we want to be able to opam switch without resetup).

dbuenzli commented 10 years ago

This may also solve #88.

dbuenzli commented 10 years ago

Doesn't seem to solve #88.

samoht commented 10 years ago

After more thoughts, I think we should get ride of all ocamlfind calls in the Makefile (and thus use only Direct calls).

dbuenzli commented 10 years ago

I think it's a bad idea. E.g. you will have to resetup after changing switches. The makefile will be too context dependent.

samoht commented 10 years ago

well the Makefile will be explicit about what it depends on (ie. it will use absolute path to all the artifacts it needs to build the project) -- but this will also means that opam reinstall xxx && make will work as expected: ie. it will recompile the part of your local project which depends on anything exposed by `xxx.

dbuenzli commented 10 years ago

But this won't work if the opam resintall xxx introduces new dependencies in xxx.