Skip to content

Commit ea5cc3b

Browse files
committed
Merge pull request #1023 from gracjan/pr-find-emacs-once
Find Emacs once
2 parents f488603 + 90383bd commit ea5cc3b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Makefile

+1-7
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ INSTALL_INFO = install-info
2323
#
2424
# This is particularly useful when EMACS is set in ~/.bash_profile
2525
#
26-
EMACS := $(shell echo "$${EMACS:-emacs}")
27-
28-
# Emacs itself sets the $EMACS environment variable to t if it is not
29-
# present, so we should ignore the variable if this is its value.
30-
ifeq ($(EMACS),t)
31-
EMACS := emacs
32-
endif
26+
EMACS := $(shell which "$${EMACS}" || which "emacs")
3327

3428
EFLAGS = --eval "(add-to-list 'load-path (expand-file-name \"tests/compat\") 'append)" \
3529
--eval "(when (< emacs-major-version 24) \

0 commit comments

Comments
 (0)