I would like to generate .merlin files when reading the ocaml compiler sources. I run
git clone https://github.com/ocaml/ocaml.git
cd ocaml
./configure
make
dune build
The last command has a exit code of 1 and prints
File "asmcomp/dune", line 27, characters 0-549:
27 | (rule
28 | (targets emit.ml)
29 | (mode fallback)
....42 | (progn
43 | (bash "echo \\# 1 \\\"`cat contains-input-name`\\\"")
44 | (bash "%{dep:../tools/cvt_emit.exe} < `cat contains-input-name`"))))))
Error: Some of the targets of this fallback rule are present in the source
tree, and some are not. This is not allowed. Either none of the targets must
be present in the source tree, either they must all be.
The following targets are present:
- asmcomp/emit.ml
The following targets are not:
- asmcomp/contains-input-name