[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/caml aba3de4 05/14: Subtler detection of Emacs executable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/caml aba3de4 05/14: Subtler detection of Emacs executable |
Date: |
Tue, 24 Aug 2021 05:57:22 -0400 (EDT) |
branch: elpa/caml
commit aba3de4469d7c1976633bf3c8812faa4ae762b1b
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Subtler detection of Emacs executable
---
Makefile | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a8c19b1..53b0761 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,24 @@ DIST_FILES = $(FILES) Makefile README* COPYING* CHANGES.md
ocamltags.in
#EMACSDIR=
# Name of Emacs executable
-EMACS=emacs
+EMACSFORMACOSX = /Applications/Emacs.app/Contents/MacOS/Emacs
+EMACSMACPORTS = /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
+AQUAMACS = $(shell test -d /Applications \
+ && find /Applications -type f | grep 'Aquamacs$$')
+ifeq ($(wildcard $(EMACSFORMACOSX)),$(EMACSFORMACOSX))
+EMACS ?= $(EMACSFORMACOSX)
+else
+ifeq ($(wildcard $(EMACSMACPORTS)),$(EMACSMACPORTS))
+EMACS ?= $(EMACSMACPORTS)
+else
+ifneq ($(strip $(AQUAMACS)),)
+ifeq ($(wildcard $(AQUAMACS)),$(AQUAMACS))
+EMACS ?= $(AQUAMACS)
+endif
+endif
+endif
+endif
+EMACS ?= emacs
# Where to install ocamltags script
SCRIPTDIR = $(BINDIR)
- [nongnu] elpa/caml updated (118fade -> f04c2e4), ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml fb9b42c 02/14: Derive caml-mode from prog-mode, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml f69b62b 03/14: Fix some warnings and require Emacs ≥ 24.3, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 3057965 04/14: Remove caml-string-to-int, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 06c445b 06/14: Generate the OPAM file in the packages/ directory, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 5f26293 08/14: Makefile: only compile the elisp code as default target, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml ad39af1 09/14: Simplify the “install” make target, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml cf6a092 01/14: Put the groups in the 'languages standard group, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml aba3de4 05/14: Subtler detection of Emacs executable,
ELPA Syncer <=
- [nongnu] elpa/caml 7eec9fb 07/14: Makefile: replace DIST_DIR with DIST_NAME, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 372df7a 10/14: Makefile: add a “tarball” target for convenience, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 6d4f18e 11/14: Update caml.el header, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 38088c3 12/14: Ignore the “packages” symbolic link, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml 6fe87ee 13/14: Update the OPAM file, ELPA Syncer, 2021/08/24
- [nongnu] elpa/caml f04c2e4 14/14: Makefile: add uninstall targets, ELPA Syncer, 2021/08/24