]> git.notmuchmail.org Git - notmuch/blobdiff - vim/Makefile
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / vim / Makefile
index f17bebfec9c1662e9c6117499d487fe7da12032e..b6f9db786faef26e90d7fef9aed2f20797032f75 100644 (file)
@@ -1,23 +1,15 @@
-.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
+INSTALL = install -v -D -m644
+D = $(DESTDIR)
 
-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)"
+all:
+       @echo "Nothing to build"
 
 install:
-       @for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done
+       $(INSTALL) $(CURDIR)/notmuch.vim $(D)$(prefix)/plugin/notmuch.vim
+       $(INSTALL) $(CURDIR)/notmuch.txt $(D)$(prefix)/doc/notmuch.txt
+       @$(foreach file,$(wildcard syntax/*), \
+               $(INSTALL) $(CURDIR)/$(file) $(D)$(prefix)/$(file);)
 
-link symlink: INSTALL = ln -fs
-link symlink: install
+.PHONY: all install