From: Felipe Contreras Date: Wed, 18 Apr 2012 12:11:55 +0000 (+0300) Subject: [PATCH] vim: simplify build X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9ced2591ab308bf963866ef06e5335e193bb4fe4;p=notmuch-archives.git [PATCH] vim: simplify build --- diff --git a/e9/6dcc6a2bb42390688fd06fc958c110739ee960 b/e9/6dcc6a2bb42390688fd06fc958c110739ee960 new file mode 100644 index 000000000..712167af0 --- /dev/null +++ b/e9/6dcc6a2bb42390688fd06fc958c110739ee960 @@ -0,0 +1,105 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7497C431FB6 + for ; Wed, 18 Apr 2012 05:12:38 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 0v+ArpyrbzdE for ; + Wed, 18 Apr 2012 05:12:38 -0700 (PDT) +Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C7AFA431FAE + for ; Wed, 18 Apr 2012 05:12:37 -0700 (PDT) +Received: by lahc1 with SMTP id c1so5771240lah.26 + for ; Wed, 18 Apr 2012 05:12:36 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer; + bh=Gioh9WuOGiNBjlatT4i04OwJDcHsEDTWbOLXlDLcBTk=; + b=f4/NHnrM6pSHT7hzwSH9v+Sx1bfFtoo+oUv9Iz06DbD97Q4anT0ZHV+D2Ct6CYTAnq + xWFEjIaZP0DOARaDNDXKgvtPPe0FgTjSQx4QdRbIzRkGMYjxIWndxV009J3r2z6tcO5q + KU4Tg4iyC8fZmMQavE+hiSveB4uj8wpw8cIhqYDfQrnkU8fYUnBSQBaiNheMPkeK69sN + qcvNFK3geyxSOGbxNoHRuAp9bveFJS6az4CNDzbZj+GTBqPLFrb6pTwNgAZgnt2tMOQS + D+Dbh/KuHi8d4u5ajZzpWJa+tQY15F03eCiQlOwZ3pmvF39LE7cUS4TWJlytezqq1w7B + 89KA== +Received: by 10.152.125.41 with SMTP id mn9mr1901014lab.30.1334751155979; + Wed, 18 Apr 2012 05:12:35 -0700 (PDT) +Received: from localhost (85-156-70-103.elisa-mobile.fi. [85.156.70.103]) + by mx.google.com with ESMTPS id fx5sm16262377lbb.5.2012.04.18.05.12.31 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 18 Apr 2012 05:12:35 -0700 (PDT) +From: Felipe Contreras +To: notmuch@notmuchmail.org +Subject: [PATCH] vim: simplify build +Date: Wed, 18 Apr 2012 15:11:55 +0300 +Message-Id: <1334751115-7216-1-git-send-email-felipe.contreras@gmail.com> +X-Mailer: git-send-email 1.7.10 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 18 Apr 2012 12:12:38 -0000 + +There should be no functional changes, except that you don't need to +make the directories before installing. + +Signed-off-by: Felipe Contreras +--- + vim/Makefile | 19 +++++++++---------- + 1 file changed, 9 insertions(+), 10 deletions(-) + +diff --git a/vim/Makefile b/vim/Makefile +index 89e18be..e7b7faa 100644 +--- a/vim/Makefile ++++ b/vim/Makefile +@@ -1,11 +1,11 @@ + .PHONY: all help install link symlink + +-FILES = plugin/notmuch.vim \ +- $(wildcard syntax/notmuch-*.vim) ++files = plugin/notmuch.vim \ ++ $(wildcard syntax/notmuch-*.vim) ++prefix = $(HOME)/.vim ++destdir = $(prefix)/plugin + +-PREFIX = $(shell ls -d ~/.vim/) +- +-OUT_FILES = $(FILES:%=${PREFIX}/%) ++INSTALL = install -D -m644 + + all: help + +@@ -16,9 +16,8 @@ help: + @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 ++install: ++ @for x in $(files); do $(INSTALL) $(PWD)/$$x $(prefix)/$$x; done + +-${OUT_FILES}: ${PREFIX}/%: % +- $(if ${SYMLINK},ln -fs,cp) `pwd`/$< $@ ++link symlink: INSTALL = ln -fs ++link symlink: install +-- +1.7.10 +