[makefile] fix dependency on generated files for ocaml lib