First you have to find out if the problem is mechanical or hydraulic. Using a blunt clamp of some sort squeeze the flexible brake lines to block fluid flow, first do the rear and push the pedal if it is still soft leave the rear clamped and clamp off both front. now push the pedal if it is hard the problem is in the front if it is soft the problem is in the master cylinder 