From: Hiroshi Shirosaki Date: Wed, 9 Dec 2015 06:47:02 +0000 (+0900) Subject: Merge pull request #235 from jirislaby/patch-1 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/bd875ab511fafa4504f36852a42927ef9c0e1fd1?ds=sidebyside;hp=-c Merge pull request #235 from jirislaby/patch-1 Makefile: support DESTDIR --- bd875ab511fafa4504f36852a42927ef9c0e1fd1 diff --combined Makefile index 3f71158,4b2ed8d..9260a52 --- a/Makefile +++ b/Makefile @@@ -1,4 -1,4 +1,4 @@@ - VIMDIR=/usr/share/vim + VIMDIR=$(DESTDIR)/usr/share/vim ADDONS=${VIMDIR}/addons REGISTRY=${VIMDIR}/registry @@@ -15,21 -15,3 +15,21 @@@ install cp -v after/ftplugin/markdown.vim ${ADDONS}/after/ftplugin/markdown.vim mkdir -pv ${REGISTRY} cp -v registry/markdown.yaml ${REGISTRY}/markdown.yaml + +test: build/tabular build/vader.vim + test/run-tests.sh +.PHONY: test + +update: build/tabular build/vader.vim + cd build/tabular && git pull + cd build/vader.vim && git pull +.PHONY: update + +build/tabular: | build + git clone https://github.com/godlygeek/tabular build/tabular + +build/vader.vim: | build + git clone https://github.com/junegunn/vader.vim build/vader.vim + +build: + mkdir build