branch: externals/eglot
commit ad982479bcd00fd166112ccc5cfa827b3353039d
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
jsonrpc must be available when compiling, too
* Makefile (JSONRPC): New variable.
---
Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 099c137..20521fa 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,15 @@ LOAD_PATH=-L .
ELFILES := eglot.el eglot-tests.el
ELCFILES := $(ELFILES:.el=.elc)
+JSONRPC :=--eval '(package-initialize)' \
+ --eval '(package-install (quote jsonrpc))'
+
all: compile
# Compilation
#
%.elc: %.el
- $(EMACS) -Q $(LOAD_PATH) --batch -f batch-byte-compile $<
+ $(EMACS) -Q $(LOAD_PATH) $(JSONRPC) --batch -f batch-byte-compile $<
compile: $(ELCFILES)
@@ -23,8 +26,7 @@ compile: $(ELCFILES)
#
eglot-check: compile
$(EMACS) -Q --batch $(LOAD_PATH) \
- --eval '(package-initialize)' \
- --eval '(package-install (quote jsonrpc))' \
+ $(JSONRPC) \
-l eglot-tests \
--eval '(ert-run-tests-batch-and-exit (quote $(SELECTOR)))'