@revdep, @revdep-check, @revdep-runtest, @revdep-install¶
@revdep builds the default alias of every local target that transitively
depends on any library defined in the current directory. The reverse
dependencies can be other libraries, executables, or tests; Dune walks the
dependency graph and schedules the appropriate alias in each dependent
directory.
Variants map to other standard aliases in the dependents:
@revdep-checkbuilds the@checkalias of every reverse dependency.@revdep-runtestbuilds the@runtestalias of every reverse dependency.@revdep-installbuilds the@installalias of every reverse dependency.
Usage examples¶
dune build @src/revdepbuilds the default alias of all targets that depend (directly or transitively) on any library declared insrc.dune build @src/revdep-checkbuilds the corresponding@checkalias for those reverse dependencies.
Notes¶
These aliases only do work when explicitly requested; they do not add overhead to regular builds.
If multiple libraries live in the same
dunefile, their reverse dependencies are combined, so@dir/revdepcovers dependents of any library indir.