Joining mitred profiles comprising punching the profiles on a corner-angle connecting piece