build: use multiple `install` rather than building up a list

Rather than building up a list to iterate over later, just create multiple
install commands based on the configuration. This makes it easier to see what
is getting installed and allows for the install handling to be centralised. NFC

llvm-svn: 365562
GitOrigin-RevId: 97d6fcce4ec6765c0e77db29c87e8083137c443d
1 file changed