mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
simplify install with a Makefile
This commit is contained in:
parent
3493ea0ed5
commit
dd7bab6273
1 changed files with 24 additions and 0 deletions
24
vim/Makefile
Normal file
24
vim/Makefile
Normal file
|
@ -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`/$< $@
|
Loading…
Reference in a new issue