I finally found
http://ocaml.org/learn/tutorials/ocamlbuild/Using_internal_libraries.html (which didn't come up earlier because I was searching for "subdirectory"); following that I added a myocamlbuild file:
open Ocamlbuild_plugin
let () =
dispatch begin function
| After_rules ->
ocaml_lib "plugins/puz/Puz_plugin";
| _ -> ()
end
but then attempting to add to the _tags file:
gave me the following:
Warning: the tag "use_puz_plugin" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your
myocamlbuild.ml to disable this warning.
+ ocamlfind ocamlc -c -g -thread -package core_kernel -I plugins/puz -o file.cmo
file.mlFile "
file.ml", line 5, characters 2-17:
Error: Unbound module Puz_plugin
Feedback on the tutorial: It would be useful to have a complete repository corresponding to each of the examples, that could be checked out and played with.
martin