Running the Coq Toplevel on a generated file with a dependency. $ cat >bar.v < From basic Require Import foo. > Definition mynum (i : mynat) := 3. > EOF $ cat >foo.v < Definition mynat := nat. > EOF $ cat >dune-project < (lang dune 3.21) > (using rocq 0.11) > EOF $ cat >dune < (rocq.theory > (name basic)) > (rule > (target bar_gen.v) > (deps bar.v) > (action (copy %{deps} %{target}))) > EOF $ cat bar.v | dune rocq top bar_gen.v > /dev/null 2> /dev/null