use ${EMACS} instead of `emacs'

This makes possible to use a different emacs executable to run the
tests.

	$ make
	# use system' emacs
	...

	$ make EMACS=/path/to/emacs
	# use the provided emacs executable
	...

Signed-off-by: Justin Abrahms <justin@abrah.ms>
This commit is contained in:
Omar Polo 2021-08-16 16:49:47 +00:00 committed by Justin Abrahms
parent d680aacf9d
commit 900c15ca0b

View File

@ -1,14 +1,16 @@
EMACS = emacs
update:
emacs -batch -l test/make-update.el
${EMACS} -batch -l test/make-update.el
compile: clean lint
emacs --version
emacs -batch -l test/elpa.el -l test/compile.el
${EMACS} --version
${EMACS} -batch -l test/elpa.el -l test/compile.el
clean:
rm -f *.elc
lint:
emacs --batch -l test/lint.el
${EMACS} --batch -l test/lint.el
.PHONY: update compile test clean