Re: [Qemu-devel] [PATCH] qapi: Reduce Makefile boilerplate

2018-11-15 Thread Eric Blake
On 11/15/18 4:37 PM, Eric Blake wrote: I'm trying to do the same thing to Makefile.objs, but when I use: common-obj-y += $(QAPI_MODULES:%=qapi/qapi-commands-%.o) or the longer $(patsubst %,qapi,qapi-commands-%.o,$(QAPI_MODULES)) both before and after the change, 'make print-common-obj-y | grep

Re: [Qemu-devel] [PATCH] qapi: Reduce Makefile boilerplate

2018-11-15 Thread Eric Blake
On 11/15/18 3:54 PM, Eric Blake wrote: Adding a new qapi module had some rather tedious repetition to wire it into Makefile. 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 m

[Qemu-devel] [PATCH] qapi: Reduce Makefile boilerplate

2018-11-15 Thread Eric Blake
Adding a new qapi module had some rather tedious repetition to wire it into Makefile. 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