From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtMAD-0004z3-2x for qemu-devel@nongnu.org; Sat, 07 Jun 2014 15:20:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtMA8-000189-Mv for qemu-devel@nongnu.org; Sat, 07 Jun 2014 15:20:25 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:46401 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtMA8-00017M-GM for qemu-devel@nongnu.org; Sat, 07 Jun 2014 15:20:20 -0400 Date: Sat, 7 Jun 2014 21:20:18 +0200 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140607192018.GC30153@irqsave.net> References: <1402168324-28931-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1402168324-28931-1-git-send-email-mreitz@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qapi: Add includes from qapi/ as dependencies List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Paolo Bonzini , Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi The Saturday 07 Jun 2014 =E0 21:12:04 (+0200), Max Reitz wrote : > qapi-schema.json has been split into three smaller JSON files in qapi/. > Add them as dependencies for the code generation in the Makefile, so > changes to them will result in a rebuilt of all QAPI-dependent code. >=20 > Signed-off-by: Max Reitz > --- > Makefile | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) >=20 > diff --git a/Makefile b/Makefile > index d830483..7837865 100644 > --- a/Makefile > +++ b/Makefile > @@ -246,18 +246,21 @@ $(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scri= pts/qapi-commands.py $(qapi-py) > $(gen-out-type) -o qga/qapi-generated -p "qga-" -i $<, \ > " GEN $@") > =20 > +qapi-modules =3D $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.= json \ > + $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core= .json > + > qapi-types.c qapi-types.h :\ > -$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-= py) > +$(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) > $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ > $(gen-out-type) -o "." -b -i $<, \ > " GEN $@") > qapi-visit.c qapi-visit.h :\ > -$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-= py) > +$(qapi-modules) $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) > $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \ > $(gen-out-type) -o "." -b -i $<, \ > " GEN $@") > qmp-commands.h qmp-marshal.c :\ > -$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qa= pi-py) > +$(qapi-modules) $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) > $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \ > $(gen-out-type) -o "." -m -i $<, \ > " GEN $@") > --=20 > 2.0.0 >=20 Seems correct. Thanks for fixing this. Reviewed-by: Benoit Canet