| 1 | ifeq ($(shell uname),Darwin) |
| 2 | DEPS := brew install ninja libtool automake cmake pkg-config gettext |
| 3 | else |
| 4 | DEPS := sudo apt install cmake libtool-bin |
| 5 | endif |
| 6 | |
| 7 | .PHONY: all |
| 8 | all: deps |
| 9 | $(MAKE) clone |
| 10 | $(MAKE) build |
| 11 | |
| 12 | .PHONY: deps |
| 13 | deps: |
| 14 | $(DEPS) |
| 15 | |
| 16 | .PHONY: clone |
| 17 | clone: |
| 18 | mkdir -p data |
| 19 | cd data && git clone https://github.com/neovim/neovim.git || true |
| 20 | |
| 21 | .PHONY: build |
| 22 | build: |
| 23 | cd data/neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo |
| 24 | |
| 25 | .PHONY: install |
| 26 | install: |
| 27 | cd data/neovim && make install |