Handle Mac build of Neovim
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Oct 2020 20:17:49 +0000 (16:17 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Oct 2020 20:17:49 +0000 (16:17 -0400)
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.018492 seconds and 4 git commands to generate.