From nobody Sun Apr 28 17:01:15 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=1601015218; cv=none; d=zohomail.com; s=zohoarc; b=HhP+OpyR9D0SFh+dosarjKo2nv0xqFnPkcy4unIPYQidZZUxmtTRNngJXBSTwJx1Cl/Y+HXFBl3SIV1dbXlasgMR4XilE4ko91pOomkuMpGZ9ajK4xkfvWkm7bEZv+6CVHQQtEn0bN2YNYCM9aHX48SnFfrMRnOu4ppGjwLt6KM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601015218; 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=+T7swFY/5OL/bQ/lM0AT9E0hq6eUNp+O81f0PcvH+qg=; b=nF89pS4bs0Wb7CQi9WppPC/UVlCX9nayFcycARmCbSXxhPJC5iIEDJMEg3gkBYvjTI3EUfNMkDkRt6GoqdqP6MKbOfQAO/k7dNorXhJZSH5rvF7vsoRA9+u4sfiFH/oQxVNS6czL1gCrp8tA5ct7sC/W4qBpIzIibsLTwQzqIM8= 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 1601015218014140.94716764116106; Thu, 24 Sep 2020 23:26:58 -0700 (PDT) Received: from localhost ([::1]:35606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLhC4-0002iN-OR for importer@patchew.org; Fri, 25 Sep 2020 02:26:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLdf9-0004L4-QK for qemu-devel@nongnu.org; Thu, 24 Sep 2020 22:40:43 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:40794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLdf7-00088G-2Q for qemu-devel@nongnu.org; Thu, 24 Sep 2020 22:40:43 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id j3so616541qvi.7 for ; Thu, 24 Sep 2020 19:40:40 -0700 (PDT) Received: from localhost.localdomain (dsl-10-130-151.b2b2c.ca. [72.10.130.151]) by smtp.gmail.com with ESMTPSA id f14sm841913qkh.134.2020.09.24.19.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 19:40:39 -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=+T7swFY/5OL/bQ/lM0AT9E0hq6eUNp+O81f0PcvH+qg=; b=mv66V7Nsnj9D4BwTmcKdiHEeKi5284zMdh46qe806P6R4RWSv/peZyeIGPsKeQFYPY S3mX4tYhMjnCOmvJD5H/UN57aHYTum+oJ2MOXP4ONeVMBdfTgWl0sEpCU74CIx1sGdHo tRX0Y9A9nctapterDIC0wBXQAHE9nRXTV0GuSn9P3x1qe7sBbVdxEELdBxldKVj8FU3L FEFt6EWMKCm+I8AB4gQnWXfB64K6uRWw0SkHJlM9Se1AReIie82dZk8GGeebB0ig6wXf lPozpxLMjxI9CCbeEydM7ft7iUAXaygLsxPy3RyjAq380v1jLbvcQGv9kc4sibkNew1E zkSQ== 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=+T7swFY/5OL/bQ/lM0AT9E0hq6eUNp+O81f0PcvH+qg=; b=B+CtODs2UcC8wsCUCR9PYxydv4UMbvhEWR0i12Jbc9NxPGEyq1kupmcIOMm6JQ0Znu 4su9kGF+Nxv4nPALfck6mqL2iJSviRVvkRi3ezRiyXS0Xrg4f42YkFj0QpwUvt8rJ0gk BFzv5aXv44Jy0A0iDTztgG225e5/NVvIDxMnVvcXHLBAqQBfD4Bqzt/NP1Z32EhWcFyU e2G78SOK2O6JEG+TN8d2AdGhksF0C3ArIbw62ySyqf2koprajQH3pOw2uDWYIePRZUED K1PvD9MVKFtfrpqIIboVo0k93Uw2tZvl8t8ujyU+MBcN4wBfagrJcvoSnBYNMks6UbjL nrxA== X-Gm-Message-State: AOAM530GOi51gOej0/G6JutTrNDm3fjB2wanoiUMw34dvisn9/FIVPnt 5nVm0SdilbzHkOlExRRtfJUmPJVA2pLkEw== X-Google-Smtp-Source: ABdhPJxTyp9cmanyeL0Hu9CIJoMO4u5Jgny/wU4sSQFdnoPeYIQlcoO1VQQhOjpLgcpwC8Qb2+3qjA== X-Received: by 2002:a0c:dd8d:: with SMTP id v13mr2315414qvk.22.1601001640093; Thu, 24 Sep 2020 19:40:40 -0700 (PDT) From: Maxim Cournoyer To: qemu-devel@nongnu.org Subject: [PATCH] build: Build and install the info manual. Date: Thu, 24 Sep 2020 22:41:43 -0400 Message-Id: <20200925024143.26492-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::f2f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2f.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:46 -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). * docs/meson.build (sphinxinfo): Add new target. --- configure | 3 +++ docs/index.rst | 2 ++ docs/meson.build | 13 +++++++++++++ meson.build | 4 +++- 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e8e8e984f2..9dfd10e063 100755 --- a/configure +++ b/configure @@ -1069,6 +1069,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" @@ -1786,6 +1788,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/$qemu_suffix --docdir=3DPATH install documentation in PATH/$qemu_suffix 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 + * diff --git a/docs/meson.build b/docs/meson.build index 50f367349b..eb94e4f3cf 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -32,10 +32,13 @@ if build_docs =20 sphinxdocs =3D [] sphinxmans =3D [] + conf_py_files =3D [files('conf.py')] + foreach manual : manuals private_dir =3D meson.current_build_dir() / (manual + '.p') output_dir =3D meson.current_build_dir() / manual input_dir =3D meson.current_source_dir() / manual + conf_py_files +=3D files(manual / 'conf.py') =20 this_manual =3D custom_target(manual + ' manual', build_by_default: build_docs, @@ -70,4 +73,14 @@ if build_docs endforeach alias_target('sphinxdocs', sphinxdocs) alias_target('man', sphinxmans) + + sphinxinfo =3D custom_target( + 'QEMU info manual generated source', + output: ['QEMU.texi', 'sphinxinfo.stamp'], + input: conf_py_files, + depfile: 'sphinxinfo.d', + command: [SPHINX_ARGS, '-Ddepfile=3D@DEPFILE@', '-Ddepfile_stamp=3D@OU= TPUT1@', + '-b', 'texinfo', + meson.current_source_dir(), meson.current_build_dir()]) + alias_target('sphinxinfo', sphinxinfo) endif diff --git a/meson.build b/meson.build index f4d1ab1096..4156b585ba 100644 --- a/meson.build +++ b/meson.build @@ -1218,6 +1218,7 @@ if build_docs 'qemu_confdir': config_host[= 'qemu_confdir']}) =20 texi =3D { + 'QEMU': sphinxinfo, 'qemu-qmp-ref': ['docs/interop/qemu-qmp-ref.texi', qapi_doc_texi, vers= ion_texi], } if 'CONFIG_GUEST_AGENT' in config_host @@ -1241,7 +1242,8 @@ if build_docs input: input, output: output, install: true, - install_dir: qemu_docdir / 'interop', + install_dir: ext =3D=3D 'info' ? get_option('infodir= ') \ + : qemu_docdir / 'interop', command: cmd + args) endforeach alias_target(ext, t) --=20 2.28.0