A tailor, making such a coat, would pay no attention to the pattern in the cloth nor to warp or woof; he would make it out of whatever material there was at hand, taking advantage of every scrap, regardless of the appearance of the ultimate garment.
It is likely that tailors, and mothers, have been thus adapting themselves to circumstances, which is the meaning of the phrase, since Jacob made Joseph a patchwork coat of many colors, for the saying has great age.
It had become proverbial in England by the time Heywood compiled his Dialogue conteynyng Prouerbes and Epigramms in 1546, but no one can tell how much earlier it had been in common English speech.