* [PATCH] bfd: Make bfd.stamp depend on source bfd.texi
@ 2022-01-25 17:15 H.J. Lu
2022-01-26 13:29 ` H.J. Lu
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2022-01-25 17:15 UTC (permalink / raw)
To: binutils; +Cc: Tobias Burnus, Nick Clifton
Make bfd.stamp depend on source bfd.texi to avoid regenerating
doc/bfd.info for each make run.
PR binutils/28807
* Makefile.in: Regenerate.
* doc/local.mk (%D%/bfd.stamp): Depend on $(srcdir)/%D%/bfd.texi.
---
bfd/Makefile.in | 5 +++--
bfd/doc/local.mk | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 5a9b32cd25c..b8e5ea0153f 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -2504,8 +2504,9 @@ doc/%.stamp: $(srcdir)/%.h $(srcdir)/doc/doc.str $(MKDOC) doc/$(am__dirstamp)
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.stamp: doc/$(am__dirstamp) ; $(AM_V_at)touch $@
+# Avoid the %.stamp generating a builddir/bfd.texi that overrides the
+# srcdir/ as well as regenerating doc/bfd.info for each make run.
+doc/bfd.stamp: $(srcdir)/doc/bfd.texi ; $(AM_V_at)touch $@
# We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
# bfd.texi on an 8.3 filesystem.
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
index 9bf4815d8c6..931942f874c 100644
--- a/bfd/doc/local.mk
+++ b/bfd/doc/local.mk
@@ -118,8 +118,9 @@ REGEN_TEXI = \
%D%/%.stamp: $(srcdir)/%.c $(srcdir)/%D%/doc.str $(MKDOC) %D%/$(am__dirstamp)
$(AM_V_GEN)$(REGEN_TEXI)
-# Avoid the %.stamp generating a builddir/bfd.texi that overrides the srcdir/.
-%D%/bfd.stamp: %D%/$(am__dirstamp) ; $(AM_V_at)touch $@
+# Avoid the %.stamp generating a builddir/bfd.texi that overrides the
+# srcdir/ as well as regenerating doc/bfd.info for each make run.
+%D%/bfd.stamp: $(srcdir)/%D%/bfd.texi ; $(AM_V_at)touch $@
# We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
# bfd.texi on an 8.3 filesystem.
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bfd: Make bfd.stamp depend on source bfd.texi
2022-01-25 17:15 [PATCH] bfd: Make bfd.stamp depend on source bfd.texi H.J. Lu
@ 2022-01-26 13:29 ` H.J. Lu
0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 2022-01-26 13:29 UTC (permalink / raw)
To: Binutils; +Cc: Tobias Burnus, Nick Clifton
On Tue, Jan 25, 2022 at 9:15 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Make bfd.stamp depend on source bfd.texi to avoid regenerating
> doc/bfd.info for each make run.
>
> PR binutils/28807
> * Makefile.in: Regenerate.
> * doc/local.mk (%D%/bfd.stamp): Depend on $(srcdir)/%D%/bfd.texi.
> ---
> bfd/Makefile.in | 5 +++--
> bfd/doc/local.mk | 5 +++--
> 2 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/bfd/Makefile.in b/bfd/Makefile.in
> index 5a9b32cd25c..b8e5ea0153f 100644
> --- a/bfd/Makefile.in
> +++ b/bfd/Makefile.in
> @@ -2504,8 +2504,9 @@ doc/%.stamp: $(srcdir)/%.h $(srcdir)/doc/doc.str $(MKDOC) doc/$(am__dirstamp)
> 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.stamp: doc/$(am__dirstamp) ; $(AM_V_at)touch $@
> +# Avoid the %.stamp generating a builddir/bfd.texi that overrides the
> +# srcdir/ as well as regenerating doc/bfd.info for each make run.
> +doc/bfd.stamp: $(srcdir)/doc/bfd.texi ; $(AM_V_at)touch $@
>
> # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
> # bfd.texi on an 8.3 filesystem.
> diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
> index 9bf4815d8c6..931942f874c 100644
> --- a/bfd/doc/local.mk
> +++ b/bfd/doc/local.mk
> @@ -118,8 +118,9 @@ REGEN_TEXI = \
> %D%/%.stamp: $(srcdir)/%.c $(srcdir)/%D%/doc.str $(MKDOC) %D%/$(am__dirstamp)
> $(AM_V_GEN)$(REGEN_TEXI)
>
> -# Avoid the %.stamp generating a builddir/bfd.texi that overrides the srcdir/.
> -%D%/bfd.stamp: %D%/$(am__dirstamp) ; $(AM_V_at)touch $@
> +# Avoid the %.stamp generating a builddir/bfd.texi that overrides the
> +# srcdir/ as well as regenerating doc/bfd.info for each make run.
> +%D%/bfd.stamp: $(srcdir)/%D%/bfd.texi ; $(AM_V_at)touch $@
>
> # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
> # bfd.texi on an 8.3 filesystem.
> --
> 2.34.1
>
I am checking it in.
--
H.J.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-26 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 17:15 [PATCH] bfd: Make bfd.stamp depend on source bfd.texi H.J. Lu
2022-01-26 13:29 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).