Received: from eggs.gnu.org ([2001:4830:134:3::10]:37095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn6Oj-0003wq-JB for qemu-devel@nongnu.org; Thu, 22 Sep 2016 11:58:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn6Oe-0000bW-AO for qemu-devel@nongnu.org; Thu, 22 Sep 2016 11:58:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn6Oe-0000bK-3j for qemu-devel@nongnu.org; Thu, 22 Sep 2016 11:58:48 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AACE935C7 for ; Thu, 22 Sep 2016 15:58:47 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 19:58:08 +0400 Message-Id: <20160922155808.8504-5-marcandre.lureau@redhat.com> In-Reply-To: <20160922155808.8504-1-marcandre.lureau@redhat.com> References: <20160922155808.8504-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 4/4] build-sys: add qapi doc generation targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Add qapi doc generation targets, qemu-qapi.texi, qemu-ga-qapi.texi (implicit pdf works too) and qemu-qapi.txt. The generated documentation isn't complete yet, so don't bother to build it by default or install it yet. Signed-off-by: Marc-Andr=C3=A9 Lureau --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index f103616..6e00559 100644 --- a/Makefile +++ b/Makefile @@ -269,6 +269,7 @@ qemu-ga$(EXESUF): QEMU_CFLAGS +=3D -I qga/qapi-genera= ted gen-out-type =3D $(subst .,-,$(suffix $@)) =20 qapi-py =3D $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.= py +qapi-py +=3D $(SRC_PATH)/scripts/qapi2texi.py =20 qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h = :\ $(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qap= i-py) @@ -558,9 +559,23 @@ qemu-monitor.texi: $(SRC_PATH)/hmp-commands.hx $(SRC= _PATH)/scripts/hxtool qemu-monitor-info.texi: $(SRC_PATH)/hmp-commands-info.hx $(SRC_PATH)/scr= ipts/hxtool $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN = $@") =20 +qemu-qapi.txt: qemu-qapi.texi + $(call quiet-command,LC_ALL=3DC $(MAKEINFO) $(MAKEINFOFLAGS) --plaintex= t $< -o $@,\ + " GEN $@") + qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/scripts/hxt= ool $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN = $@") =20 +qemu-qapi.texi: $(qapi-modules) $(qapi-py) \ + $(SRC_PATH)/docs/qemu-qapi.template.texi + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi2texi.py \ + $(SRC_PATH)/docs/qemu-qapi.template.texi $(VERSION) $< > $@," GEN $@= ") + +qemu-ga-qapi.texi: $(SRC_PATH)/qga/qapi-schema.json $(qapi-py) \ + $(SRC_PATH)/docs/qemu-ga-qapi.template.texi + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi2texi.py \ + $(SRC_PATH)/docs/qemu-ga-qapi.template.texi $(VERSION) $< > $@," GEN = $@") + qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-i= nfo.texi $(call quiet-command, \ perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \ --=20 2.10.0