]> git.cworth.org Git - obsolete/notmuch-old/blob - vim/Makefile
test: update dump-restore to use redirection instead of filename args
[obsolete/notmuch-old] / vim / Makefile
1 .PHONY: all help install link symlink
2
3 FILES     = plugin/notmuch.vim \
4             $(wildcard syntax/notmuch-*.vim)
5
6 PREFIX    = $(shell ls -d ~/.vim/)
7
8 OUT_FILES = $(FILES:%=${PREFIX}/%)
9
10 all: help
11
12 help:
13         @echo "I don't actually build anything, but I will help you install"
14         @echo "notmuch support for vim."
15         @echo
16         @echo "    make install     - copy plugin scripts and syntax files to ~/.vim"
17         @echo "    make symlink     - create symlinks in ~/.vim (useful for development)"
18
19 install: ${OUT_FILES}
20 link symlink:
21         ${MAKE} SYMLINK=1 install
22
23 ${OUT_FILES}: ${PREFIX}/%: %
24         $(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@