emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot ad98247 02/62: jsonrpc must be available when com


From: Stefan Monnier
Subject: [elpa] externals/eglot ad98247 02/62: jsonrpc must be available when compiling, too
Date: Sat, 29 Sep 2018 17:13:27 -0400 (EDT)

branch: externals/eglot
commit ad982479bcd00fd166112ccc5cfa827b3353039d
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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)))'
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]