diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-18 21:00:56 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-25 00:48:49 -0500 |
commit | dd7bab62731a104e2f7dcc717fc90ab92b7f53f9 (patch) | |
tree | c2959ff42434ee91baaa5ac7b460948ce9524267 /vim/Makefile | |
parent | 3493ea0ed5bd20b961aafa01eeddaf8cbc49b52f (diff) |
simplify install with a Makefile
Diffstat (limited to 'vim/Makefile')
-rw-r--r-- | vim/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vim/Makefile b/vim/Makefile new file mode 100644 index 00000000..89e18be1 --- /dev/null +++ b/vim/Makefile @@ -0,0 +1,24 @@ +.PHONY: all help install link symlink + +FILES = plugin/notmuch.vim \ + $(wildcard syntax/notmuch-*.vim) + +PREFIX = $(shell ls -d ~/.vim/) + +OUT_FILES = $(FILES:%=${PREFIX}/%) + +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: ${OUT_FILES} +link symlink: + ${MAKE} SYMLINK=1 install + +${OUT_FILES}: ${PREFIX}/%: % + $(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@ |