From: Siraaj Khandkar Date: Mon, 26 Oct 2020 20:17:49 +0000 (-0400) Subject: Handle Mac build of Neovim X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=a0710ab0a066db250e1ba72de746f6b0019480f8;p=khome.git Handle Mac build of Neovim --- 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: