makefiles: Avoid running config.status when not necessary.