From 043686d352f97657a537be95a53f8348aeb3c897 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sat, 21 Jul 2012 09:23:05 +0200 Subject: [PATCH] allow to install only the full emacs binary --- Makefile.in | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 95b0931..7cd05a4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -397,9 +397,12 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS) ## don't have to duplicate the list of utilities to install in ## this Makefile as well. -.PHONY: install +.PHONY: install install-full-only install-full-link -install: all install-arch-indep install-doc install-arch-dep blessmail +install-full-only: all install-arch-indep install-doc install-arch-dep blessmail + @true + +install: install-full-link @true ## Ensure that $subdir contains a subdirs.el file. @@ -430,15 +433,21 @@ install-arch-dep: install-arch-indep install-doc if test "${ns_self_contained}" = "no"; then \ ${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 ; \ + true ; \ else \ subdir=${ns_appresdir}/site-lisp; \ ${write_subdir} || exit 1; \ rm -rf ${ns_appresdir}/share; \ fi +install-full-link: install-full-only + if test "${ns_self_contained}" = "no"; then \ + rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ + ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ + else \ + true ; \ + fi + ## In the share directory, we are deleting: ## applications (with emacs.desktop, also found in etc/) ## emacs (basically empty except for unneeded site-lisp directories) -- 1.7.10.4