diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-03-23 22:51:39 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-03-23 22:53:28 +0100 |
commit | 9bff311fe9f57ed45d77833e5e56e3b14b225fe0 (patch) | |
tree | 4394a86ecae497e26ceca4793a7662e7fe0d0361 /Makefile | |
parent | 0559ecdeed79fe2ec239a506cb9c5ffd6e722324 (diff) |
makefile: change prefix for jdtls
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,8 @@ CURDIR ?= $(.CURDIR) BREW ?= $(shell command -v brew 2> /dev/null) JDT_LS_VERSION ?= 1.17.0 -JDT_LS_HOME ?= $(CURDIR)/eclipse.jdt.ls-$(JDT_LS_VERSION) +PREFIX ?= $(HOME)/.local/stow +JDT_LS_HOME ?= $(PREFIX)/eclipse.jdt.ls-$(JDT_LS_VERSION) LN_FLAGS := -sfn COLOR := \033[32;01m @@ -33,12 +34,11 @@ install-lsp-java: 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 - + tar -C $(JDT_LS_HOME) -zxf - @echo "eclipse jdt ls $(JDT_LS_VERSION) installed in $(COLOR)$(JDT_LS_HOME)$(NO_COLOR)" @echo "emacs/eglot requires the following environment variables:" @echo "- $(COLOR)JAVA_HOME$(NO_COLOR) must contain the path to a jdk installation" - @echo "- $(COLOR)PATH$(NO_COLOR) must contain $(COLOR)$(CURDIR)/eclipse.jdt.ls/bin$(NO_COLOR)" - ln -nsf $(notdir $(JDT_LS_HOME)) $(CURDIR)/eclipse.jdt.ls + @echo "- $(COLOR)PATH$(NO_COLOR) must contain $(COLOR)$(JDT_LS_HOME)/bin$(NO_COLOR)" install-lsp-python: python3 -m pip install --user -U python-lsp-server |