From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id CFCEE3858D33 for ; Sun, 15 Oct 2023 08:22:11 +0000 (GMT) ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CFCEE3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697358133; cv=none; b=ZLTT07tIuFwjPVQmU84eEHsdiU+QNFKuYD6IoQmgJmNdYoDFwqgBtyPyM4ak4XcIq875ZH44fk0bq6leooi+6X5GhHxjIVszpasJlgqOWFEv2y42b8DFzQm5dvrqiY40QHOeQ94ds5zNZObb85t82oFszY5MfTZqIbedfmWEGlQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697358133; c=relaxed/simple; bh=4ctWItZkEMGxLhJeDRpTfe1wxw1SnbAdPWuXtxYQRZU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=QJJBSkdxqRY+5p95TXxtL99+HVH/xZAnHoiXxAlGpmatp3aGWvhGTbEH6perY0i3UHuLY65VO8shJoMpmt9+tLnS0KMXvZe+EMRCXhWiBzrCimZMuef4SngsN79GPucR+76lZ9xLmPHsuNxSwRjyqPaOVFiZWmC+x+az+tRjJig= ARC-Authentication-Results: i=1; server2.sourceware.org DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CFCEE3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 7AEAE335D0A; Sun, 15 Oct 2023 08:22:11 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] libgloss: doc: generate single page & split html manuals Date: Sun, 15 Oct 2023 14:07:06 +0545 Message-ID: <20231015082206.32686-1-vapier@gentoo.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: By default, only split node html manuals are generated. Change the default to single page, and add an extra rule to also generate the split page manual. --- libgloss/Makefile.in | 11 +++++++++-- libgloss/doc/Makefile.inc | 7 +++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in index 6c5a12256c40..7c7ad68dc411 100644 --- a/libgloss/Makefile.in +++ b/libgloss/Makefile.in @@ -937,6 +937,7 @@ MULTISUBDIR = MULTIDO = true MULTICLEAN = true TEXINFO_TEX = ../texinfo/texinfo.tex +@HAVE_DOC_TRUE@AM_MAKEINFOFLAGS = --no-split @CONFIG_AARCH64_TRUE@aarch64_librdimon_a_SOURCES = \ @CONFIG_AARCH64_TRUE@ aarch64/_exit.c \ @CONFIG_AARCH64_TRUE@ aarch64/_kill.c \ @@ -5097,6 +5098,7 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." +@HAVE_DOC_FALSE@html-local: clean: clean-recursive clean-am: clean-aminfo clean-binPROGRAMS clean-checkPROGRAMS \ @@ -5116,7 +5118,7 @@ dvi-am: $(DVIS) html: html-recursive -html-am: $(HTMLS) +html-am: $(HTMLS) html-local info: info-recursive @@ -5283,7 +5285,7 @@ uninstall-am: uninstall-aarch64_cpu_initcpuinitDATA \ clean-noinstLIBRARIES cscope cscopelist-am ctags ctags-am \ dist-info distclean distclean-compile distclean-generic \ distclean-hdr distclean-local distclean-tags dvi dvi-am html \ - html-am info info-am install \ + html-am html-local info info-am install \ install-aarch64_cpu_initcpuinitDATA install-am \ install-arm_cpu_initcpuinitDATA install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ @@ -5336,6 +5338,11 @@ clean-local: clean-multi distclean-local: distclean-multi maintainer-clean-local: maintainer-clean-multi +@HAVE_DOC_TRUE@html-local: doc/porting/index.html +@HAVE_DOC_TRUE@doc/porting/index.html: doc/porting.texi doc/$(am__dirstamp) +@HAVE_DOC_TRUE@ $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ +@HAVE_DOC_TRUE@ --split=node $< -o $(@D) + @CONFIG_AARCH64_TRUE@aarch64/crt0.$(OBJEXT): aarch64/crt0.S @CONFIG_AARCH64_TRUE@ $(AM_V_CPPAS)$(CPPASCOMPILE) -DSEMIHOST_V2 -o $@ -c $< @CONFIG_AARCH64_TRUE@aarch64/rdimon-crt0.$(OBJEXT): aarch64/crt0.S diff --git a/libgloss/doc/Makefile.inc b/libgloss/doc/Makefile.inc index fa5e30fbf2bc..6f9050fc87f8 100644 --- a/libgloss/doc/Makefile.inc +++ b/libgloss/doc/Makefile.inc @@ -1 +1,8 @@ +AM_MAKEINFOFLAGS = --no-split + info_TEXINFOS += %D%/porting.texi + +html-local: %D%/porting/index.html +%D%/porting/index.html: %D%/porting.texi %D%/$(am__dirstamp) + $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ + --split=node $< -o $(@D) -- 2.42.0