diff options
author | Glenn Morris <rgm@gnu.org> | 2012-08-20 18:12:35 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-08-20 18:12:35 -0400 |
commit | 9aa0092cdd378dd8f7a55896c31bb68d2be18b1c (patch) | |
tree | 808d76728fca01086e6e06b55efe72c25b31ebed /Makefile.in | |
parent | 327576483cd198b11b39bb88a42d0495f5724684 (diff) |
Use symlink in installed bin/ directory, where supported
* configure.ac (AC_PROG_LN_S): Test for ln.
* Makefile.in (LN_S): New, set by configure.
(install-arch-dep): Use $LN_S.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index ab9f16c035..bf4c4b853a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -246,6 +246,7 @@ INSTALL_INFO = @INSTALL_INFO@ # By default, we uphold the dignity of our programs. INSTALL_STRIP = MKDIR_P = @MKDIR_P@ +LN_S = @LN_S@ # We use gzip to compress installed .el files. GZIP_PROG = @GZIP_PROG@ @@ -437,7 +438,7 @@ install-arch-dep: install-arch-indep install-doc ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \ chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) ; \ rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ - ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ + cd $(DESTDIR)${bindir} && $(LN_S) $(EMACSFULL) $(EMACS); \ else \ subdir=${ns_appresdir}/site-lisp; \ ${write_subdir} || exit 1; \ |