don't rerun generator if @statedir@ is empty