From 90383bd3a2152896575919b20c8c92dc4ac7e95a Mon Sep 17 00:00:00 2001 From: Gracjan Polak Date: Fri, 11 Dec 2015 13:59:54 +0100 Subject: [PATCH] Find Emacs once --- Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3bb61e63f..d93d2ed93 100644 --- a/Makefile +++ b/Makefile @@ -23,13 +23,7 @@ INSTALL_INFO = install-info # # This is particularly useful when EMACS is set in ~/.bash_profile # -EMACS := $(shell echo "$${EMACS:-emacs}") - -# Emacs itself sets the $EMACS environment variable to t if it is not -# present, so we should ignore the variable if this is its value. -ifeq ($(EMACS),t) -EMACS := emacs -endif +EMACS := $(shell which "$${EMACS}" || which "emacs") EFLAGS = --eval "(add-to-list 'load-path (expand-file-name \"tests/compat\") 'append)" \ --eval "(when (< emacs-major-version 24) \