The end goal is annexation. Canada has natural resources and Trump wants them. He's creating a crisis he can use as justification for invasion.
maybe he's joking, maybe it's a negotiation strategy. but he's also unpredictable, and Canadians need to take the threats seriously.