Making gear teeth by tools of which the profile matches the profile of the required surface