mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-01 07:04:10 +01:00
vim: simplify build
There should be no functional changes, except that you don't need to make the directories before installing. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
ae525b7e5b
commit
85e991affc
1 changed files with 9 additions and 10 deletions
17
vim/Makefile
17
vim/Makefile
|
@ -1,11 +1,11 @@
|
||||||
.PHONY: all help install link symlink
|
.PHONY: all help install link symlink
|
||||||
|
|
||||||
FILES = plugin/notmuch.vim \
|
files = plugin/notmuch.vim \
|
||||||
$(wildcard syntax/notmuch-*.vim)
|
$(wildcard syntax/notmuch-*.vim)
|
||||||
|
prefix = $(HOME)/.vim
|
||||||
|
destdir = $(prefix)/plugin
|
||||||
|
|
||||||
PREFIX = $(shell ls -d ~/.vim/)
|
INSTALL = install -D -m644
|
||||||
|
|
||||||
OUT_FILES = $(FILES:%=${PREFIX}/%)
|
|
||||||
|
|
||||||
all: help
|
all: help
|
||||||
|
|
||||||
|
@ -16,9 +16,8 @@ help:
|
||||||
@echo " make install - copy plugin scripts and syntax files to ~/.vim"
|
@echo " make install - copy plugin scripts and syntax files to ~/.vim"
|
||||||
@echo " make symlink - create symlinks in ~/.vim (useful for development)"
|
@echo " make symlink - create symlinks in ~/.vim (useful for development)"
|
||||||
|
|
||||||
install: ${OUT_FILES}
|
install:
|
||||||
link symlink:
|
@for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done
|
||||||
${MAKE} SYMLINK=1 install
|
|
||||||
|
|
||||||
${OUT_FILES}: ${PREFIX}/%: %
|
link symlink: INSTALL = ln -fs
|
||||||
$(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@
|
link symlink: install
|
||||||
|
|
Loading…
Reference in a new issue