Dune: How to add a dependency on one executable to another?

See https://github.com/ocaml/dune/issues/3499 (Allow dependencies for executables).

The work-around I use is to copy the executable and then install the copy. The copying rule adds the dependency. e.g.