Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Markus Armbruster
Luiz Capitulino writes: > On Thu, 26 Jul 2012 13:50:24 +0200 > Markus Armbruster wrote: > >> Paolo, Eric, I got a make puzzle for you below. >> >> Luiz Capitulino writes: >> >> > This script generates two files from qapi-schema-errors.json: >> > >> > o qapi-errors.h: contains error macro def

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Luiz Capitulino
On Thu, 26 Jul 2012 14:12:50 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > This script generates two files from qapi-schema-errors.json: > > > > o qapi-errors.h: contains error macro definitions, eg. QERR_BASE_NOT_FOUND, > > corresponds to most of today's qer

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Luiz Capitulino
On Thu, 26 Jul 2012 13:55:29 +0200 Paolo Bonzini wrote: > Il 26/07/2012 13:50, Markus Armbruster ha scritto: > >> > +qapi-errors.h qapi-errors.c :\ > >> > +$(SRC_PATH)/qapi-schema-errors.json $(SRC_PATH)/scripts/qapi-errors.py > >> > +$(call quiet-command,$(PYTHON) > >> > $(SRC_PATH)/scr

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Luiz Capitulino
On Thu, 26 Jul 2012 13:50:24 +0200 Markus Armbruster wrote: > Paolo, Eric, I got a make puzzle for you below. > > Luiz Capitulino writes: > > > This script generates two files from qapi-schema-errors.json: > > > > o qapi-errors.h: contains error macro definitions, eg. QERR_BASE_NOT_FOUND, > >

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Eric Blake
On 07/26/2012 06:38 AM, Eric Blake wrote: >>> Paolo, Eric, maybe you can provide advice on how to best tell make that >>> a recipe generates multiple files. >> >> Hmm, I would just do >> >> qapi-errors.h: qapi-errors.c >> qapi-errors.c: $(SRC_PATH)/qapi-schema-errors.json >> $(SRC_PATH)/scripts/qa

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Eric Blake
On 07/26/2012 05:55 AM, Paolo Bonzini wrote: > Il 26/07/2012 13:50, Markus Armbruster ha scritto: +qapi-errors.h qapi-errors.c :\ +$(SRC_PATH)/qapi-schema-errors.json $(SRC_PATH)/scripts/qapi-errors.py + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-errors.py -o "."

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Markus Armbruster
Luiz Capitulino writes: > This script generates two files from qapi-schema-errors.json: > > o qapi-errors.h: contains error macro definitions, eg. QERR_BASE_NOT_FOUND, > corresponds to most of today's qerror.h > > o qapi-errors.c: contains the error table that currently exists

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Paolo Bonzini
Il 26/07/2012 13:50, Markus Armbruster ha scritto: >> > +qapi-errors.h qapi-errors.c :\ >> > +$(SRC_PATH)/qapi-schema-errors.json $(SRC_PATH)/scripts/qapi-errors.py >> > + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-errors.py -o >> > "." < $<, " GEN $@") > I'm afraid this isn't qui

Re: [Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-26 Thread Markus Armbruster
Paolo, Eric, I got a make puzzle for you below. Luiz Capitulino writes: > This script generates two files from qapi-schema-errors.json: > > o qapi-errors.h: contains error macro definitions, eg. QERR_BASE_NOT_FOUND, > corresponds to most of today's qerror.h > > o qapi-errors.

[Qemu-devel] [PATCH 09/11] qapi: add qapi-errors.py

2012-07-25 Thread Luiz Capitulino
This script generates two files from qapi-schema-errors.json: o qapi-errors.h: contains error macro definitions, eg. QERR_BASE_NOT_FOUND, corresponds to most of today's qerror.h o qapi-errors.c: contains the error table that currently exists in qerror.c Signed-off-by: Luiz Ca