Machining the middle part and the ends of a workpiece consecutively