Rashi on the Former Prophets
Joshua 11
South of Kinros.— South of Ginosar.
The region of Dor.—The districts of Dor. Contree in French.
מִיָם—on the west.
מִשְׂרְפוֹת מַיִם Targum Yonasan translates, sea-ditches. They dug ditches and the sea water would flow into them, and the water would be burned [evaporate] from the heat of the sun and would turn into salt.
Remained with their walls intact. Their walls were not destroyed like Yericho, whose walls fell, and similarly Ai, as it is said, “[And Yehoshua burned Ai] and made it into a mound forever, a ruin.”
The only exception was Chatzor. He burned it because of a traditional command. Moshe so commanded and transmitted it to him. This is found in Bereishis Rabba on the Sidrah of “And Yaakov sent.”
The bare, divided mountain. A smooth mountain. This was a bare (smooth) mountain to Baal-gad, which was on the eastern border. During his lifetime, Yehoshua, was unable to conquer the entire eastern border to the north.
Baal-gad—the plain of gad.
For many days did Yehoshua. This verse was said to criticize Yehoshua, who intended to delay the conquest of the land, in order to lengthen his days, for it is said, “And you will apportion it to them.” Because he was reluctant to complete the conquest, God punished him, and as soon as the apportioning of the land was completed he died. He was then one hundred and ten years old. Were it not for this, he would have lived ten more years, till one hundred and twenty as did his master, Moshe. From Midrash Tanchumah.
You arrive at the cited line; the whole work is yours to read around it. The text is set from the cited public-domain edition.