Moved dir declaration to defines. Added run target.