aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/notmuch-vim/Makefile
blob: f17bebfec9c1662e9c6117499d487fe7da12032e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all help install link symlink

files = plugin/notmuch.vim \
	$(wildcard syntax/notmuch-*.vim)
prefix = $(HOME)/.vim
destdir = $(prefix)/plugin

INSTALL = install -D -m644

all: help

help:
	@echo "I don't actually build anything, but I will help you install"
	@echo "notmuch support for vim."
	@echo
	@echo "    make install     - copy plugin scripts and syntax files to ~/.vim"
	@echo "    make symlink     - create symlinks in ~/.vim (useful for development)"

install:
	@for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done

link symlink: INSTALL = ln -fs
link symlink: install