Handle Mac build of Neovim
[khome.git] / deps / neovim / Makefile
index 696b1e4..6d23fb9 100644 (file)
@@ -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:
This page took 0.028007 seconds and 4 git commands to generate.