Skip to content

Commit

Permalink
Merge pull request #595 from gracjan/pr-emacs-in-makefile
Browse files Browse the repository at this point in the history
Source EMACS value from environment in Makefile.
  • Loading branch information
gracjan committed Apr 23, 2015
2 parents 7270be9 + 6294520 commit 99d94fa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@
VERSION = 13.12

INSTALL_INFO = install-info
EMACS = emacs

# Use $EMACS environment variable if present, so that all of these are
# equivalent:
#
# 1. export EMACS=/path/to/emacs && make
# 2. EMACS=/path/to/emacs make
# 3. make EMACS=/path/to/emacs
#
# This is particularly useful when EMACS is set in ~/.bash_profile
#
EMACS := $(shell echo "$${EMACS:-emacs}")

EFLAGS = --eval "(add-to-list 'load-path (expand-file-name \"tests/compat\") 'append)" \
--eval "(when (< emacs-major-version 24) \
(setq byte-compile-warnings '(not cl-functions)))" \
Expand Down

0 comments on commit 99d94fa

Please sign in to comment.