summaryrefslogtreecommitdiff
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-08-20 19:57:35 -0400
committerGlenn Morris <rgm@gnu.org>2012-08-20 19:57:35 -0400
commit24564fe1aab428c41e053b9c0848d9e7a8f2cb69 (patch)
treed777ffcaca38f91481b8b92bd559158d3d74fdb6 /src/Makefile.in
parent9aa0092cdd378dd8f7a55896c31bb68d2be18b1c (diff)
downloademacs-24564fe1aab428c41e053b9c0848d9e7a8f2cb69.tar.gz
* 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.
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in9
1 files changed, 6 insertions, 3 deletions
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); \