From 24564fe1aab428c41e053b9c0848d9e7a8f2cb69 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 20 Aug 2012 19:57:35 -0400 Subject: * src/Makefile.in: Don't assume that `ln -f' works. Presumably it does work fine on all platforms currently building Emacs, but the autoconf manual says not to rely on it. --- src/Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Makefile.in') diff --git a/src/Makefile.in b/src/Makefile.in index 4b1520ada62..1d89af31401 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -402,11 +402,13 @@ $(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. emacs$(EXEEXT): temacs$(EXEEXT) $(etc)/DOC $(lisp) $(leimdir)/leim-list.el if test "$(CANNOT_DUMP)" = "yes"; then \ - ln -f temacs$(EXEEXT) emacs$(EXEEXT); \ + rm -f emacs$(EXEEXT); \ + ln temacs$(EXEEXT) emacs$(EXEEXT); \ else \ LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump || exit 1; \ test "X$(PAXCTL)" = X || $(PAXCTL) -zex emacs$(EXEEXT); \ - ln -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ + rm -f bootstrap-emacs$(EXEEXT); \ + ln emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ fi ## We run make-docfile twice because the command line may get too long @@ -600,7 +602,8 @@ $(lispsource)/loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS) bootstrap-emacs$(EXEEXT): temacs$(EXEEXT) cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs if test "$(CANNOT_DUMP)" = "yes"; then \ - ln -f temacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ + rm -f bootstrap-emacs$(EXEEXT); \ + ln temacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ else \ $(RUN_TEMACS) --batch --load loadup bootstrap || exit 1; \ test "X$(PAXCTL)" = X || $(PAXCTL) -zex emacs$(EXEEXT); \ -- cgit v1.2.1