Skip to content

Commit 99d94fa

Browse files
committed
Merge pull request #595 from gracjan/pr-emacs-in-makefile
Source EMACS value from environment in Makefile.
2 parents 7270be9 + 6294520 commit 99d94fa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@
1515
VERSION = 13.12
1616

1717
INSTALL_INFO = install-info
18-
EMACS = emacs
18+
19+
# Use $EMACS environment variable if present, so that all of these are
20+
# equivalent:
21+
#
22+
# 1. export EMACS=/path/to/emacs && make
23+
# 2. EMACS=/path/to/emacs make
24+
# 3. make EMACS=/path/to/emacs
25+
#
26+
# This is particularly useful when EMACS is set in ~/.bash_profile
27+
#
28+
EMACS := $(shell echo "$${EMACS:-emacs}")
29+
1930
EFLAGS = --eval "(add-to-list 'load-path (expand-file-name \"tests/compat\") 'append)" \
2031
--eval "(when (< emacs-major-version 24) \
2132
(setq byte-compile-warnings '(not cl-functions)))" \

0 commit comments

Comments
 (0)