Like make, but for state machines