"holding profit making as important and excluding everything else" is definitely not what should be done. "When Milton Friedman says a company should stay "within the rules of the game" and operate "without deception or fraud," ... he does not mean that a company should put every last nickel on the bottom line every quarter, regardless of the long-term consequences."
I'm merely arguing that it's the profit that results in businesses generating the goodness to the community, not advocating that everyone should drop everything and pursue profit only. Once you're profitable you can choose a way of contributing back to society. But Friedman suggests that corporate philanthropy isn't the only way. "what reason is there to suppose that the stream of profit distributed in this way would do more good for society than investing that stream of profit in the enterprise itself or paying it out as dividends and letting the stockholders dispose of it?"