(rule
 (targets x y)
 (action (with-stdout-to %{targets} (echo foo))))