On 15/11/2018 23:50, Eric Blake wrote: > Adding a new qapi module requires some rather tedious repetition to > wire it into Makefile and Makefile.objs. Add some indirection by > taking advantage of GNU Make string processing to expand a list > of module names into all the required artifacts, so that future > additions of a new module need only touch the list of module names. > > The list has to live in Makefile.objs, due to the way that > unnest-vars slirps in that file without remembering any definition > of $(QAPI_MODULES) from Makefile.
I don't see offhand why that would happen; Makefile.objs is simply included from Makefile. Anyway, if this works it's okay as well. Feel free to send me the non-working patch offlist. Paolo