From nobody Tue May 14 22:53:28 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1601015088; cv=none; d=zohomail.com; s=zohoarc; b=OjqHMzH4nAHhKXWS/TauvQVH8j0yTpitQlJ+pX9Awq2yJsMjuT+XuwrciK+GjBRGDNPh1kYTUhfF+Oi2l6PANXsZMcwQxKgaL1FByxNbfV1ghYYvEib3ntRICcNLPHX3gf52mr48yNbEkvg1P+v3cGVjUCZXwe4ypZ/Q5U4t2yA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601015088; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ygBnasl7QoVQUKFVpcjb38zHixZE+c8N2z51GZVXIxs=; b=ItHqThDrBEriYqsfpSwahKLUcCtiLuzLhbpE9KG09B3Ah6S4lFVSyBgeWpl7sAZObTvWzoMxgOckBtb5xq6wExDkHe/6YiQ5c7ZniYTLnRb2qUkMIkS58OwpuV2xXcDyGOO56tZxEBaAoNK3Rd8X21KO/fAqDR/7Jj/40w4AopA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1601015088793819.2167204983824; Thu, 24 Sep 2020 23:24:48 -0700 (PDT) Received: from localhost ([::1]:33462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLh9x-0001di-0z for importer@patchew.org; Fri, 25 Sep 2020 02:24:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLdaL-0003tm-SW for qemu-devel@nongnu.org; Thu, 24 Sep 2020 22:35:45 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:36118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLdaK-0006mE-2s for qemu-devel@nongnu.org; Thu, 24 Sep 2020 22:35:45 -0400 Received: by mail-qk1-x72b.google.com with SMTP id q63so1538227qkf.3 for ; Thu, 24 Sep 2020 19:35:43 -0700 (PDT) Received: from localhost.localdomain (dsl-10-130-151.b2b2c.ca. [72.10.130.151]) by smtp.gmail.com with ESMTPSA id g19sm906131qka.84.2020.09.24.19.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 19:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ygBnasl7QoVQUKFVpcjb38zHixZE+c8N2z51GZVXIxs=; b=oWF5qjupA2nDJCcld3ut7W2FEH19wGGpBFXaYPN1+PUYjQJpXMUkafWm6u7ETciUw6 tLpYt1O7+GzOzNHIwwlu3jLTO7vyL/QN8p1BykxD2BdecZ4wSFkKnp92W9LpSlLfaj1X xXrNCeNgds9huaZgWp/xDjhXTaIQk5LkWP1aCZukETe7b5wKw4Ghl/y6j2Glqic+acbe pCZvZbtSrajQm7Dzh5d6ZJRZAhthoXBc2Y5HiFn8/QYYx8y4fIl9uTOtBnJA5R2me2sF zbURWNLeNqoAzC2+YEiIwjeG6bDMhpHh51de8vk4Y6b/h9sbB7ZcmWeYlg31EEa2NDCo /AKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ygBnasl7QoVQUKFVpcjb38zHixZE+c8N2z51GZVXIxs=; b=Hde9pPJqe/FuAQOa1+exQ8j6nOPqwZxWIqk796HcR/63LMEZectliJIX4SjEie6eSP PyLqj6tsRamFkpAqsXSG1NPyJhPDDkP/xvyHs8bnzOE95MNQgtrd5DPk8g4xFNtxoXXY lOmTSBaM8HFE0kNpRpsYVElNx5xWlJYPYRZwAuXOAmWMU3HqeDaWQfTovCIpL2gO4o3a lfk7tpF0/RJy23HH4Np0vGwEn1JBcCitkWCiEKuwJV0uSbMLvYDXLgxXKuxahoTJJUZL +O0hvoYGwRSR8XMhZAx/7bHzf6XHwFaapWccPjYYRYiBWqdy6G1wkyYuFqzWrymlspMw xfuQ== X-Gm-Message-State: AOAM532wyIlJ6/0W1IMzCkRkutkhXaaLk+kqY5UB1k1V1O4D3dICzf8x VKAqTdxwOZfbdt3u3mwu6uxkCdEEjYHfnQ== X-Google-Smtp-Source: ABdhPJw92pZnoAJz+FD3L81VJXYywcl1nquMmR1Vr5776AbnB6vvwcRwxD/KVyejR49O+fp8689uAQ== X-Received: by 2002:a37:4c15:: with SMTP id z21mr2204658qka.194.1601001342674; Thu, 24 Sep 2020 19:35:42 -0700 (PDT) From: Maxim Cournoyer To: qemu-devel@nongnu.org Subject: [PATCH v5.1.0] build: Build and install the info manual. Date: Thu, 24 Sep 2020 22:36:30 -0400 Message-Id: <20200925023630.26301-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 25 Sep 2020 02:23:43 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Cournoyer Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Type: text/plain; charset="utf-8" Take advantage of the Sphinx texinfo backend to generate a QEMU info manual. The texinfo format allows for more structure and info readers provide more advanced navigation capabilities compared to manpages readers. * configure (infodir): Add the --infodir option, which allows configuring the directory under which the info manuals are installed. * docs/index.rst: Include the top level documents to prevent warnings (treated as errors by sphinx-build). * Makefile (sphinxdocs-info, $(MANUAL_BUILDDIR)/QEMU.texi)): New targets. (info): Depend on sphinxdocs-info. (install-doc): Install the info manual. --- Makefile | 13 +++++++++++-- configure | 7 +++++++ docs/index.rst | 2 ++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 13dd708c4a..da78612d85 100644 --- a/Makefile +++ b/Makefile @@ -864,12 +864,14 @@ endef # Note that we deliberately do not install the "devel" manual: it is # for QEMU developers, and not interesting to our users. .PHONY: install-sphinxdocs -install-sphinxdocs: sphinxdocs +install-sphinxdocs: sphinxdocs sphinxdocs-info $(call install-manual,interop) $(call install-manual,specs) $(call install-manual,system) $(call install-manual,tools) $(call install-manual,user) + $(INSTALL_DIR) "$(DESTDIR)$(infodir)" + $(INSTALL_DATA) $(MANUAL_BUILDDIR)/QEMU.info "$(DESTDIR)$(infodir)" =20 install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DIR) "$(DESTDIR)$(qemu_docdir)" @@ -1067,6 +1069,13 @@ sphinxdocs: $(MANUAL_BUILDDIR)/devel/index.html \ $(MANUAL_BUILDDIR)/tools/index.html \ $(MANUAL_BUILDDIR)/user/index.html =20 +# Build the complete info manual. +.PHONE: sphinxdocs-info +sphinxdocs-info: $(MANUAL_BUILDDIR)/QEMU.info + +$(MANUAL_BUILDDIR)/QEMU.texi: $(call manual-deps,*) $(wildcard $(SRC_PATH)= /docs/*.rst) + $(call build-manual,,texinfo) + # Canned command to build a single manual # Arguments: $1 =3D manual name, $2 =3D Sphinx builder ('html' or 'man') # Note the use of different doctree for each (manual, builder) tuple; @@ -1126,7 +1135,7 @@ docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qg= a-qapi-doc.texi @cp -p $< $@ =20 html: docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html sphinxd= ocs -info: docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info +info: docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-ref.info sphinxd= ocs-info pdf: docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf txt: docs/interop/qemu-qmp-ref.txt docs/interop/qemu-ga-ref.txt =20 diff --git a/configure b/configure index 2acc4d1465..3691bd2e0c 100755 --- a/configure +++ b/configure @@ -415,6 +415,7 @@ LDFLAGS_SHARED=3D"-shared" modules=3D"no" module_upgrades=3D"no" prefix=3D"/usr/local" +infodir=3D"\${prefix}/share/info" mandir=3D"\${prefix}/share/man" datadir=3D"\${prefix}/share" firmwarepath=3D"\${prefix}/share/qemu-firmware" @@ -987,6 +988,7 @@ if test "$mingw32" =3D "yes" ; then LIBS=3D"-liberty $LIBS" fi prefix=3D"c:/Program Files/QEMU" + infodir=3D"\${prefix}" mandir=3D"\${prefix}" datadir=3D"\${prefix}" qemu_docdir=3D"\${prefix}" @@ -1087,6 +1089,8 @@ for opt do static=3D"yes" QEMU_PKG_CONFIG_FLAGS=3D"--static $QEMU_PKG_CONFIG_FLAGS" ;; + --infodir=3D*) infodir=3D"$optarg" + ;; --mandir=3D*) mandir=3D"$optarg" ;; --bindir=3D*) bindir=3D"$optarg" @@ -1780,6 +1784,7 @@ Advanced options (experts only): --smbd=3DSMBD use specified smbd [$smbd] --with-git=3DGIT use specified git [$git] --static enable static build [$static] + --infodir=3DPATH install info manual in PATH --mandir=3DPATH install man pages in PATH --datadir=3DPATH install firmware in PATH$confsuffix --docdir=3DPATH install documentation in PATH$confsuffix @@ -6836,6 +6841,7 @@ echo "include directory $(eval echo $includedir)" echo "config directory $(eval echo $sysconfdir)" if test "$mingw32" =3D "no" ; then echo "local state directory $(eval echo $local_statedir)" +echo "Info manual directory $(eval echo $infodir)" echo "Manual directory $(eval echo $mandir)" echo "ELF interp prefix $interp_prefix" else @@ -7059,6 +7065,7 @@ echo "bindir=3D$bindir" >> $config_host_mak echo "libdir=3D$libdir" >> $config_host_mak echo "libexecdir=3D$libexecdir" >> $config_host_mak echo "includedir=3D$includedir" >> $config_host_mak +echo "infodir=3D$infodir" >> $config_host_mak echo "mandir=3D$mandir" >> $config_host_mak echo "sysconfdir=3D$sysconfdir" >> $config_host_mak echo "qemu_confdir=3D$qemu_confdir" >> $config_host_mak diff --git a/docs/index.rst b/docs/index.rst index 763e3d0426..4f155b51d7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,6 +9,7 @@ Welcome to QEMU's documentation! .. toctree:: :maxdepth: 2 :caption: Contents: + :glob: =20 system/index user/index @@ -16,3 +17,4 @@ Welcome to QEMU's documentation! interop/index specs/index devel/index + * --=20 2.28.0