File: Makefile

package info (click to toggle)
notmuch 0.3.1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,240 kB
  • ctags: 1,234
  • sloc: ansic: 5,246; cpp: 2,868; lisp: 2,370; sh: 1,278; python: 1,210; makefile: 124; csh: 2
file content (24 lines) | stat: -rw-r--r-- 607 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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`/$< $@