to be double sure clamp all 4 brake hoses and see if the pedal goes normal, if it does take 1 clamp off at a time checking pedal after each, if pedal becomes crap again then the problem lies on the corner you unclamped last
If the pedal is still crap with all hoses clamped off then its the master cylinder