How to change Vendor/Product ID when compiling bootloaders

Not only theoretically. Leonardo/Micro with native USB connect to the PC as a different device (different VID/PID) in bootloader and sketch.