How to combine assets into groups?

Docs only shows terribly simple example on how to combine assets into one ‘all’ group. I cannot get how to assign one asset to one group and another asset to other group. I ended up having “Only one target can have empty depends section”.

Can you show an example, please?