We don't need to run ocamldep on ther alias module $ cat >dune-project < (lang dune 3.19) > EOF $ cat >dune < (library > (name foo)) > EOF $ touch bar.ml $ dune build foo.cma $ find _build -iname "*.d" -o -iname "*.all-deps" | sort _build/default/.foo.objs/foo__Bar.impl.all-deps _build/default/.foo.objs/foo__Bar.impl.d