From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#12011: Makefile.in: allow installation of $(FULLEMACS) without linking to $(EMACS) Date: Sat, 21 Jul 2012 19:42:44 +0200 Organization: Linux Private Site Message-ID: <87vchh3t9n.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1342892625 11265 80.91.229.3 (21 Jul 2012 17:43:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2012 17:43:45 +0000 (UTC) To: 12011@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 19:43:45 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsdiS-0007dk-9a for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2012 19:43:44 +0200 Original-Received: from localhost ([::1]:51297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsdiR-0008FL-Lu for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2012 13:43:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsdiN-0008FE-Tb for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsdiM-00015u-ME for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsdiM-00015p-Ij for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SsdoY-0004pQ-16 for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Achim Gratz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jul 2012 17:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134289298518531 (code B ref -1); Sat, 21 Jul 2012 17:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2012 17:49:45 +0000 Original-Received: from localhost ([127.0.0.1]:55773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsdoG-0004oq-Tv for submit@debbugs.gnu.org; Sat, 21 Jul 2012 13:49:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60082) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SsdoE-0004oi-55 for submit@debbugs.gnu.org; Sat, 21 Jul 2012 13:49:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssdi0-00013c-Vf for submit@debbugs.gnu.org; Sat, 21 Jul 2012 13:43:18 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:60873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssdi0-00013V-Rv for submit@debbugs.gnu.org; Sat, 21 Jul 2012 13:43:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssdhz-0008Ev-JZ for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssdhx-00012z-Tp for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssdhx-00012j-Ig for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 13:43:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ssdhm-00079R-Mq for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2012 19:43:02 +0200 Original-Received: from pd9eb465c.dip.t-dialin.net ([217.235.70.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 19:43:02 +0200 Original-Received: from Stromeko by pd9eb465c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jul 2012 19:43:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 153 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb465c.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:/dkwIJZlfqzKHRBDq+I9kZd88Ow= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62247 Archived-At: --=-=-= Content-Type: text/plain If you have several Emacsen installed in parallel, the step in 'make install' that links $(FULLEMACS) to $(EMACS) is almost never wanted. It would be nice if there was a separate target that avoided removing the previous link (which should be left alone) and then creating a new link. Two patches to Makefile.in (one for trunk and the other for emacs-24) are attached that implement the above suggestion. Feel free to give those targets better names. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-trunk.patch Content-Description: allow to install only the full emacs binary >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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-emacs24.patch Content-Description: allow to install only the full emacs binary >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 --=-=-= Content-Type: text/plain Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs --=-=-=--