diff --git a/bfd/Makefile.in b/bfd/Makefile.in index a781e2b8959..15931461694 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -1318,7 +1318,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 $$texi; \ + test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ $(SHELL) $(srcdir)/../move-if-change $@.tmp $$texi; \ touch $@; \ ) diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk index 346dba36b03..d8950d1b0d6 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 $$texi; \ + test -e $$texi || test ! -f $(srcdir)/$$texi || $(LN_S) $(abs_srcdir)/$$texi $$texi; \ $(SHELL) $(srcdir)/../move-if-change $@.tmp $$texi; \ touch $@; \ )