When a rule target can be be inferred from the rule action, the target or targets field can be omitted. This works with the short form of the rule stanza: $ dune build @infer It worked!