From 469d3d20773c942219c268d48519f99419258930 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sat, 21 Jul 2012 08:48:24 +0200 Subject: [PATCH] allow to install only the full emacs binary --- Makefile.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9a9be4f..7c581b1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -449,7 +449,7 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS) ## On AIX, use tar xBf. ## On Xenix, use tar xpf. -.PHONY: install mkdir +.PHONY: install install-full-only install-full-link mkdir ## We delete each directory in ${COPYDESTS} before we copy into it; ## that way, we can reinstall over directories that have been put in @@ -458,7 +458,10 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS) ## source exists and is distinct from the destination. ### We do install-arch-indep first because ### the executable needs the Lisp files and DOC file to work properly. -install: all install-arch-indep install-arch-dep install-leim blessmail +install-fullonly: all install-arch-indep install-arch-dep install-leim blessmail + @true + +install: install-full-link @true MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done @@ -474,8 +477,6 @@ install-arch-dep: mkdir INSTALL_STRIP=${INSTALL_STRIP}) ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) -chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) - rm -f $(DESTDIR)${bindir}/$(EMACS) - -ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) if test "${ns_appresdir}" != ""; then \ ( cd ${ns_appresdir} ; \ if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\ @@ -487,7 +488,10 @@ install-arch-dep: mkdir ln -sf ../libexec/* . ; fi ; fi ) ; \ else true ; fi +install-full-link: install-full-only + rm -f $(DESTDIR)${bindir}/$(EMACS) + -ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) + ## FIXME is the emacs-24* bit above really necessary and correct? ## What if I have 24.1 and 24.2 installed at the same time? ## In any case, it should use something like echo $version | sed 's/\..*//' -- 1.7.10.4