Last active
August 18, 2017 04:25
-
-
Save yowcow/0206b94b3d51b8a87c232b49c4ea53f2 to your computer and use it in GitHub Desktop.
Install vim from source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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