Use in-tree ocaml/ocamlc within the manual #7146
Original bug ID: 7146
Currently, the manual tools and examples are build using the system ocaml
For the specific case of the in-manual examples, it is relatively easy to fix the problem by modifying the manual's makefiles. However, it might make sense to factorize this work with the test subtree which has already solved the very same issues.
Unfortunately, I am not sure how to do that in a portable way.
Comment author: @gasche
I would try to split the part of testsuite/makefile/Makefile.common that sets the tool definitions into a sub-makefile testsuite/makefile/Makefile.tools, included from Makefile.common, and also from the makefiles in manual/**. The "calling convention" is to set the TOPDIR variable accordingly, and then $(OCAMLC) etc. should be usable.
I don't see portability issue with that solution.