Received: from eggs.gnu.org ([2001:4830:134:3::10]:41822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boE1i-0001Hb-BX for qemu-devel@nongnu.org; Sun, 25 Sep 2016 14:19:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boE1f-0007r7-GS for qemu-devel@nongnu.org; Sun, 25 Sep 2016 14:19:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boE1f-0007qz-6x for qemu-devel@nongnu.org; Sun, 25 Sep 2016 14:19:43 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 BE6877DCFD for ; Sun, 25 Sep 2016 18:19:42 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 25 Sep 2016 22:18:36 +0400 Message-Id: <20160925181836.18293-12-marcandre.lureau@redhat.com> In-Reply-To: <20160925181836.18293-1-marcandre.lureau@redhat.com> References: <20160925181836.18293-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 v2 11/11] build-sys: make and install the generated schema docs 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?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- Makefile | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6e00559..5d8d0c3 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,9 @@ HELPERS-$(CONFIG_LINUX) =3D qemu-bridge-helper$(EXESUF) =20 ifdef BUILD_DOCS DOCS=3Dqemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 qemu-ga= .8 +DOCS+=3Ddocs/qemu-qapi.txt qemu-qapi.7 +DOCS+=3Ddocs/qemu-ga-qapi.txt qemu-ga-qapi.7 +DOCS+=3Dqemu-qapi.pdf qemu-ga-qapi.pdf ifdef CONFIG_VIRTFS DOCS+=3Dfsdev/virtfs-proxy-helper.1 endif @@ -400,6 +403,9 @@ distclean: clean rm -f config.log rm -f linux-headers/asm rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech= .fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg = qemu-tech.toc qemu-tech.tp qemu-tech.vr + rm -f qemu-qapi.info qemu-qapi.aux qemu-qapi.cp qemu-qapi.dvi qemu-qapi= .fn qemu-qapi.info qemu-qapi.ky qemu-qapi.log qemu-qapi.pdf qemu-qapi.pg = qemu-qapi.toc qemu-qapi.tp qemu-qapi.vr qemu-ga-qapi.info qemu-ga-qapi.au= x qemu-ga-qapi.cp qemu-ga-qapi.dvi qemu-ga-qapi.fn qemu-ga-qapi.info qemu= -ga-qapi.ky qemu-ga-qapi.log qemu-ga-qapi.pdf qemu-ga-qapi.pg qemu-ga-qap= i.toc qemu-ga-qapi.tp qemu-ga-qapi.vr + rm -f qemu-qapi.7 qemu-ga-qapi.7 + rm -f docs/qemu-qapi.txt for d in $(TARGET_DIRS); do \ rm -rf $$d || exit 1 ; \ done @@ -436,10 +442,12 @@ endif install-doc: $(DOCS) $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)" $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(qemu_docdir)= " - $(INSTALL_DATA) $(SRC_PATH)/docs/qmp-commands.txt "$(DESTDIR)$(qemu_doc= dir)" + $(INSTALL_DATA) docs/qemu-qapi.txt "$(DESTDIR)$(qemu_docdir)" ifdef CONFIG_POSIX $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" $(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1" + $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7" + $(INSTALL_DATA) qemu-qapi.7 "$(DESTDIR)$(mandir)/man7" ifneq ($(TOOLS),) $(INSTALL_DATA) qemu-img.1 "$(DESTDIR)$(mandir)/man1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" @@ -447,6 +455,8 @@ ifneq ($(TOOLS),) endif ifneq (,$(findstring qemu-ga,$(TOOLS))) $(INSTALL_DATA) qemu-ga.8 "$(DESTDIR)$(mandir)/man8" + $(INSTALL_DATA) docs/qemu-ga-qapi.txt "$(DESTDIR)$(qemu_docdir)" + $(INSTALL_DATA) qemu-ga-qapi.7 "$(DESTDIR)$(mandir)/man7" endif endif ifdef CONFIG_VIRTFS @@ -559,7 +569,7 @@ 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 +docs/%-qapi.txt: %-qapi.texi $(call quiet-command,LC_ALL=3DC $(MAKEINFO) $(MAKEINFOFLAGS) --plaintex= t $< -o $@,\ " GEN $@") =20 @@ -607,10 +617,22 @@ qemu-ga.8: qemu-ga.texi $(POD2MAN) --section=3D8 --center=3D" " --release=3D" " qemu-ga.pod >= $@, \ " GEN $@") =20 -dvi: qemu-doc.dvi qemu-tech.dvi -html: qemu-doc.html qemu-tech.html -info: qemu-doc.info qemu-tech.info -pdf: qemu-doc.pdf qemu-tech.pdf +qemu-qapi.7: qemu-qapi.texi + $(call quiet-command, \ + perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-qapi.pod && \ + $(POD2MAN) --section=3D7 --center=3D" " --release=3D" " qemu-qapi.pod = > $@, \ + " GEN $@") + +qemu-ga-qapi.7: qemu-ga-qapi.texi + $(call quiet-command, \ + perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-ga-qapi.pod && \ + $(POD2MAN) --section=3D7 --center=3D" " --release=3D" " qemu-ga-qapi.p= od > $@, \ + " GEN $@") + +dvi: qemu-doc.dvi qemu-tech.dvi qemu-qapi.dvi qemu-ga-qapi.dvi +html: qemu-doc.html qemu-tech.html qemu-qapi.html qemu-ga-qapi.html +info: qemu-doc.info qemu-tech.info qemu-qapi.info qemu-ga-qapi.info +pdf: qemu-doc.pdf qemu-tech.pdf qemu-qapi.pdf qemu-ga-qapi.pdf =20 qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \ qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-option-trace.texi \ --=20 2.10.0