Mr. Market has punished The Home Depot (HD -1.77%), Lowes Companies, Inc (LOW -1.40%), and especially Trex (TREX -1.08%) during the past few months as the housing market has stumbled a little. Foolish contributor Jason Hall takes a closer look at what's happening, and applies some solid long-term, forward-looking analysis to these companies, and the building-supplies market in general. 

Not sure what you should do? Check out the video below.