aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2024-10-02 22:58:08 +0300
committerAlan Modra <amodra@gmail.com>2024-10-03 12:58:50 +0930
commit98b1464bdf6306a8ab4614b5e9f76cdb2dd00b33 (patch)
tree2c11269ef607e88f4b1f7851fad9a8bdb0149c42
parent424890868f19cfd871d911cc538f59dd91c50713 (diff)
downloadbinutils-98b1464bdf6306a8ab4614b5e9f76cdb2dd00b33.zip
binutils-98b1464bdf6306a8ab4614b5e9f76cdb2dd00b33.tar.gz
binutils-98b1464bdf6306a8ab4614b5e9f76cdb2dd00b33.tar.bz2
bfd: fix unnecessary bfd.info regen
When building from an unmodified release tarball, a REGEN_TEXI invocation is supposed to create a symlink to the .texi file in the source directory and discard the newly generated .tmp file. However, after commit bd32be01c997 ("bfd: merge doc subdir up a level") it creates the symlink at the wrong level, and then a .texi with a fresh timestamp, which in turn forces bfd.info regeneration. This breaks builds in environments without makeinfo program. Fix this by creating the symlink at the level of the target stamp. Fixes: bd32be01c997 ("bfd: merge doc subdir up a level") Signed-off-by: Alexey Izbyshev <izbyshev@ispras.ru>
-rw-r--r--bfd/Makefile.in2
-rw-r--r--bfd/doc/local.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index b3d97d4..e9b479a 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1322,7 +1322,7 @@ REGEN_TEXI = \
$(MKDOC) -f $(srcdir)/doc/doc.str < $< > $@.tmp; \
texi=$@; \
texi=$${texi%.stamp}.texi; \
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi .; \
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \
$(SHELL) $(srcdir)/../move-if-change $@.tmp $$texi; \
touch $@; \
)
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
index 5e8f486..9767e58 100644
--- a/bfd/doc/local.mk
+++ b/bfd/doc/local.mk
@@ -101,7 +101,7 @@ REGEN_TEXI = \
$(MKDOC) -f $(srcdir)/%D%/doc.str < $< > $@.tmp; \
texi=$@; \
texi=$${texi%.stamp}.texi; \
- test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi .; \
+ test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(srcdir)/$$texi $$texi; \
$(SHELL) $(srcdir)/../move-if-change $@.tmp $$texi; \
touch $@; \
)