2009-11-19 03:00:56 +01:00
|
|
|
.PHONY: all help install link symlink
|
|
|
|
|
2012-02-22 17:57:56 +01:00
|
|
|
files = plugin/notmuch.vim \
|
|
|
|
$(wildcard syntax/notmuch-*.vim)
|
|
|
|
prefix = $(HOME)/.vim
|
|
|
|
destdir = $(prefix)/plugin
|
2009-11-19 03:00:56 +01:00
|
|
|
|
2012-02-22 17:57:56 +01:00
|
|
|
INSTALL = install -D -m644
|
2009-11-19 03:00:56 +01:00
|
|
|
|
|
|
|
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)"
|
|
|
|
|
2012-02-22 17:57:56 +01:00
|
|
|
install:
|
|
|
|
@for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done
|
2009-11-19 03:00:56 +01:00
|
|
|
|
2012-02-22 17:57:56 +01:00
|
|
|
link symlink: INSTALL = ln -fs
|
|
|
|
link symlink: install
|