From a0710ab0a066db250e1ba72de746f6b0019480f8 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 26 Oct 2020 16:17:49 -0400 Subject: [PATCH] Handle Mac build of Neovim --- deps/neovim/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deps/neovim/Makefile b/deps/neovim/Makefile index 696b1e4..6d23fb9 100644 --- a/deps/neovim/Makefile +++ b/deps/neovim/Makefile @@ -1,3 +1,9 @@ +ifeq ($(shell uname),Darwin) + DEPS := brew install ninja libtool automake cmake pkg-config gettext +else + DEPS := sudo apt install cmake libtool-bin +endif + .PHONY: all all: deps $(MAKE) clone @@ -5,14 +11,12 @@ all: deps .PHONY: deps deps: - sudo apt install \ - cmake \ - libtool-bin + $(DEPS) .PHONY: clone clone: mkdir -p data - cd data && git clone https://github.com/neovim/neovim.git + cd data && git clone https://github.com/neovim/neovim.git || true .PHONY: build build: -- 2.20.1