Skip to content

Instantly share code, notes, and snippets.

@yowcow
Last active August 18, 2017 04:25
Show Gist options
  • Save yowcow/0206b94b3d51b8a87c232b49c4ea53f2 to your computer and use it in GitHub Desktop.
Save yowcow/0206b94b3d51b8a87c232b49c4ea53f2 to your computer and use it in GitHub Desktop.
Install vim from source
VERSION ?= 8.0.0705
ARCHIVE = v$(VERSION).tar.gz
UNARCHIVED = vim-$(VERSION)
PREFIX = /usr/local/$(UNARCHIVED)
.PHONY: all install current
all: $(UNARCHIVED)
cd $< && \
./configure \
--prefix=$(PREFIX) \
--enable-fail-if-missing \
--enable-luainterp \
--enable-multibyte \
--enable-terminal \
--with-lua-prefix=/usr/local && \
make
install:
cd $(UNARCHIVED) && \
make install
current:
-rm /usr/local/vim
ln -s $(PREFIX) /usr/local/vim
$(ARCHIVE):
curl -LO https://github.com/vim/vim/archive/$(ARCHIVE)
$(UNARCHIVED): $(ARCHIVE)
tar xzf $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment