From: H.J. Lu Date: Mon, 24 Jan 2022 15:39:44 +0000 (-0800) Subject: bfd: Update doc/local.mk X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94fd627d46e7774e96a381cc9174cedcbf6e5577;p=binutils-gdb.git bfd: Update doc/local.mk PR binutils/28807 * Makefile.in: Regenerate. * doc/local.mk (AM_MAKEINFOFLAGS): Add -I "$(srcdir)/%D%" -I %D%. (TEXI2DVI): New. (%D%/bfd.texi): Removed. (doc/bfd/index.html): Remove -I$(srcdir). Replace bfd.texi with %D%/bfd.texi. --- diff --git a/bfd/Makefile.in b/bfd/Makefile.in index e48a0b87bc9..b06c0c98e9b 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -271,7 +271,6 @@ PDFS = doc/bfd.pdf PSS = doc/bfd.ps HTMLS = doc/bfd.html TEXINFOS = doc/bfd.texi -TEXI2DVI = texi2dvi TEXI2PDF = $(TEXI2DVI) --pdf --batch MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) @@ -1304,7 +1303,8 @@ SRCIPROT = $(srcdir)/cache.c $(srcdir)/libbfd.c \ TEXIDIR = $(srcdir)/../texinfo/fsf info_TEXINFOS = doc/bfd.texi doc_bfd_TEXINFOS = $(DOCFILES) doc/bfdsumm.texi -AM_MAKEINFOFLAGS = --no-split +AM_MAKEINFOFLAGS = --no-split -I "$(srcdir)/doc" -I doc +TEXI2DVI = texi2dvi -I "$(srcdir)/doc" -I doc MKDOC = doc/chew$(EXEEXT_FOR_BUILD) # We can't replace these rules with an implicit rule, because @@ -2505,7 +2505,7 @@ doc/%.stamp: $(srcdir)/%.c $(srcdir)/doc/doc.str $(MKDOC) doc/$(am__dirstamp) $(AM_V_GEN)$(REGEN_TEXI) # Avoid the %.stamp generating a builddir/bfd.texi that overrides the srcdir/. -doc/bfd.texi doc/bfd.stamp: doc/$(am__dirstamp) ; $(AM_V_at)touch $@ +doc/bfd.stamp: doc/$(am__dirstamp) ; $(AM_V_at)touch $@ # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with # bfd.texi on an 8.3 filesystem. @@ -2526,7 +2526,7 @@ doc/bfdver.texi: $(srcdir)/Makefile.in html-local: doc/bfd/index.html doc/bfd/index.html: doc/bfd.texi $(bfd_TEXINFOS) doc/$(am__dirstamp) $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ - --split=node -I$(srcdir) -o doc/bfd $(srcdir)/bfd.texi + --split=node -o doc/bfd $(srcdir)/doc/bfd.texi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk index 6a9cceb727a..9bf4815d8c6 100644 --- a/bfd/doc/local.mk +++ b/bfd/doc/local.mk @@ -77,7 +77,8 @@ TEXIDIR = $(srcdir)/../texinfo/fsf info_TEXINFOS = %D%/bfd.texi %C%_bfd_TEXINFOS = $(DOCFILES) %D%/bfdsumm.texi -AM_MAKEINFOFLAGS = --no-split +AM_MAKEINFOFLAGS = --no-split -I "$(srcdir)/%D%" -I %D% +TEXI2DVI = texi2dvi -I "$(srcdir)/%D%" -I %D% MKDOC = %D%/chew$(EXEEXT_FOR_BUILD) @@ -118,7 +119,7 @@ REGEN_TEXI = \ $(AM_V_GEN)$(REGEN_TEXI) # Avoid the %.stamp generating a builddir/bfd.texi that overrides the srcdir/. -%D%/bfd.texi %D%/bfd.stamp: %D%/$(am__dirstamp) ; $(AM_V_at)touch $@ +%D%/bfd.stamp: %D%/$(am__dirstamp) ; $(AM_V_at)touch $@ # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with # bfd.texi on an 8.3 filesystem. @@ -148,6 +149,6 @@ MAINTAINERCLEANFILES += $(DOCFILES) html-local: %D%/bfd/index.html %D%/bfd/index.html: %D%/bfd.texi $(bfd_TEXINFOS) %D%/$(am__dirstamp) $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ - --split=node -I$(srcdir) -o %D%/bfd $(srcdir)/bfd.texi + --split=node -o %D%/bfd $(srcdir)/%D%/bfd.texi MAINTAINERCLEANFILES += %D%/bfd.info