(rule
 (fallback)
 (targets) 
 (action (with-stdout-to foo.txt (echo "testing"))))