diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-03-14 16:59:50 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-03-14 17:14:56 +0100 |
commit | 760478608a7b7c8b86dec6426903d2c81ae9bf49 (patch) | |
tree | 98587075c6a38b7d96bd5a96471c21d09e7474ef /Makefile | |
parent | 44ddc6fc2d479d331c35b38de318907e471a8b74 (diff) |
makefile: Add target for installing Java LSP server
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,17 +1,30 @@ CURDIR ?= $(.CURDIR) +ECLIPSE_JDT ?= $(CURDIR)/eclipse.jdt.ls LN_FLAGS := -sfn +COLOR := \033[32;01m +NO_COLOR := \033[0m all: install install: ln $(LN_FLAGS) $(CURDIR) ~/.emacs.d -install-lsp: install-lsp-go install-lsp-python install-lsp-rust +install-lsp: install-lsp-go install-lsp-java install-lsp-python install-lsp-rust install-lsp-go: go install golang.org/x/tools/gopls@latest +install-lsp-java: + mkdir -p $(ECLIPSE_JDT) + curl -fsSL https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz | \ + tar -C $(ECLIPSE_JDT) -xf - + @echo "eclipse jdt installed in $(COLOR)$(ECLIPSE_JDT)$(NO_COLOR)" + @echo "eglot needs the following environment variables set:" + @echo "- $(COLOR)JAVA_HOME$(NO_COLOR) containing the path to a jdk installation" + @printf -- "- $(COLOR)CLASSPATH$(NO_COLOR) containing $(COLOR)%s$(NO_COLOR)\n" \ + $(ECLIPSE_JDT)/plugins/org.eclipse.equinox.launcher_*.jar + install-lsp-python: python3 -m pip install --user -U python-language-server |