summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-04-05 17:19:36 +0200
committerMartin Polden <mpolden@mpolden.no>2021-04-05 17:19:36 +0200
commit6cfb314faa6c898fc1b1513a04de82391dfa9eff (patch)
treeec3d5f83b2352c3d6e1f94079e1dc847363fca9a /Makefile
parent319cc6ac7e4dfb646812dce13febf3c62f56eed2 (diff)
makefile: Add target for installing Emacs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1e4f9d9..91e0565 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
CURDIR ?= $(.CURDIR)
+BREW ?= $(shell command -v brew 2> /dev/null)
ECLIPSE_JDT ?= $(CURDIR)/eclipse.jdt.ls
LN_FLAGS := -sfn
@@ -10,6 +11,14 @@ all: install
install:
ln $(LN_FLAGS) $(CURDIR) ~/.emacs.d
+install-emacs:
+ifdef BREW
+ brew tap railwaycat/emacsmacport
+ brew install --with-mac-metal --with-emacs-big-sur-icon emacs-mac
+else
+ $(error brew command not found)
+endif
+
install-lsp: install-lsp-go install-lsp-java install-lsp-python install-lsp-rust
install-lsp-go: