summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-04-20 20:35:53 +0200
committerMartin Polden <mpolden@mpolden.no>2022-04-20 21:03:52 +0200
commitbd1689ceba3514b3267a84e6a630e24b33e06914 (patch)
tree1b61a73b6cb6b3494446d42dedec22d2668aff4d /Makefile
parent01dbf245dea740b428880a05cd98f8d536e9cf77 (diff)
makefile: Support multiple versions of JDT LS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3024c78..cca1944 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
CURDIR ?= $(.CURDIR)
BREW ?= $(shell command -v brew 2> /dev/null)
BREW_EMACS_FLAGS ?= --with-native-comp
-JDT_LS_HOME ?= $(CURDIR)/eclipse.jdt.ls
JDT_LS_VERSION ?= 1.8.0
+JDT_LS_HOME ?= $(CURDIR)/eclipse.jdt.ls-$(JDT_LS_VERSION)
LN_FLAGS := -sfn
COLOR := \033[32;01m
@@ -32,7 +32,7 @@ else
endif
install-lsp-java:
- mkdir $(JDT_LS_HOME)
+ mkdir -p $(JDT_LS_HOME)
FILE=`curl -fsSL https://download.eclipse.org/jdtls/milestones/$(JDT_LS_VERSION)/latest.txt`; \
curl -fsSL https://download.eclipse.org/jdtls/milestones/$(JDT_LS_VERSION)/$$FILE | \
tar -C $(JDT_LS_HOME) -xf -
@@ -41,6 +41,7 @@ install-lsp-java:
@echo "- $(COLOR)JAVA_HOME$(NO_COLOR) containing the path to a jdk installation"
@printf -- "- $(COLOR)CLASSPATH$(NO_COLOR) containing $(COLOR)%s$(NO_COLOR)\n" \
$(JDT_LS_HOME)/plugins/org.eclipse.equinox.launcher_*.jar
+ ln -nsf $(JDT_LS_HOME) $(CURDIR)/eclipse.jdt.ls
install-lsp-python:
python3 -m pip install --user -U python-lsp-server