Add dependency to generate buildinfo files.