Received: from eggs.gnu.org ([2001:4830:134:3::10]:58284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMPq-0000ZJ-1K for qemu-devel@nongnu.org; Thu, 04 Feb 2016 11:05:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRMPm-0002FD-1o for qemu-devel@nongnu.org; Thu, 04 Feb 2016 11:05:53 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:53769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMPl-0002Ey-Bh for qemu-devel@nongnu.org; Thu, 04 Feb 2016 11:05:49 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Thu, 4 Feb 2016 17:05:45 +0100 Message-Id: <145460194285.5818.14237884467366648188.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2] [trivial] qapi: Build-depend on all json files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Michael Roth Dynamically detects the files used to generate QAPI code, thus ensuring it's never out of sync with the sources. Signed-off-by: Llu=C3=ADs Vilanova --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d0de2d4..f8e8648 100644 --- a/Makefile +++ b/Makefile @@ -269,10 +269,8 @@ $(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts= /qapi-commands.py $(qapi-py) $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ " GEN $@") =20 -qapi-modules =3D $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.js= on \ - $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.j= son \ - $(SRC_PATH)/qapi/event.json $(SRC_PATH)/qapi/introspect.j= son \ - $(SRC_PATH)/qapi/crypto.json +qapi-modules =3D $(SRC_PATH)/qapi-schema.json +qapi-modules +=3D $(wildcard $(SRC_PATH)/qapi/*.json) =20 qapi-types.c qapi-types.h :\ $(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)