1 .PHONY: all help install link symlink
3 FILES = plugin/notmuch.vim \
4 $(wildcard syntax/notmuch-*.vim)
6 PREFIX = $(shell ls -d ~/.vim/)
8 OUT_FILES = $(FILES:%=${PREFIX}/%)
13 @echo "I don't actually build anything, but I will help you install"
14 @echo "notmuch support for vim."
16 @echo " make install - copy plugin scripts and syntax files to ~/.vim"
17 @echo " make symlink - create symlinks in ~/.vim (useful for development)"
21 ${MAKE} SYMLINK=1 install
23 ${OUT_FILES}: ${PREFIX}/%: %
24 $(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@