Show that copy_files operates on the build folder $ mkdir -p target foo $ make_dune_project 3.14 $ cat >target/dune < (copy_files > (files ../foo/*.txt)) > EOF $ cat >foo/dune < (rule > (write-file in-build.txt "")) > EOF $ touch foo/in-source.txt $ dune build target/in-source.txt $ dune build target/in-build.txt Show the difference when `only_sources` is used $ cat >target/dune < (copy_files > (only_sources) > (files ../foo/*.txt)) > EOF $ dune build target/in-source.txt $ dune build target/in-build.txt Error: Don't know how to build target/in-build.txt [1] A blang expression can be used: $ cat >target/dune < (copy_files > (only_sources (= x x)) > (files ../foo/*.txt)) > EOF $ dune build target/in-source.txt $ dune build target/in-build.txt Error: Don't know how to build target/in-build.txt [1]