Generate version files from Make rather than shellscripts