ssh root@target_ip /tmp/myprogram &
I experienced that the session would hang. It needed a
ssh root@target_ip /tmp/myprogram 2>/dev/null >/dev/null &
And this did the trick. Make now exits fine.
Blog about development of embedded software for devices, the process of making it and the tools involved.